Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream #1678

Merged
merged 26 commits into from
Oct 29, 2018
Merged

Upstream #1678

merged 26 commits into from
Oct 29, 2018

Conversation

decabeza
Copy link

@decabeza decabeza commented Oct 20, 2018

Objectives

This PR sync this repo with some changes made on CONSUL repo including the following PRs:

Backport

Backport the last commit to fix houndci-bot warnings in the CONSUL repo too.


scenario "main navigation right" do
create(:site_customization_content_block, name: "subnavigation_right", locale: "en", body: "content for right links")
create(:site_customization_content_block, name: "subnavigation_right", locale: "es", body: "contenido para right links")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [124/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

end

scenario "main navigation right" do
create(:site_customization_content_block, name: "subnavigation_right", locale: "en", body: "content for right links")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [121/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)


scenario "main navigation left" do
create(:site_customization_content_block, name: "subnavigation_left", locale: "en", body: "content for left links")
create(:site_customization_content_block, name: "subnavigation_left", locale: "es", body: "contenido para left links")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [122/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

@@ -30,4 +30,34 @@
expect(page).to have_content("contenido para footer")
expect(page).not_to have_content("content for footer")
end

scenario "main navigation left" do
create(:site_customization_content_block, name: "subnavigation_left", locale: "en", body: "content for left links")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [119/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

expect(page).to have_content "See results"
end

scenario "See results button does not appear for unfinished budgets" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSpec/RepeatedDescription: Don't repeat descriptions within an example group. (http:https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedDescription)
RSpec/RepeatedExample: Don't repeat examples within an example group. (http:https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedExample)

@@ -50,7 +50,7 @@

click_link "Create new content block"

select "top_links", from: "site_customization_content_block_name"
select I18n.t("admin.site_customization.content_blocks.content_block.names.top_links"), from: "site_customization_content_block_name"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [139/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

@@ -27,7 +27,7 @@

click_link "Create new content block"

select "footer", from: "site_customization_content_block_name"
select I18n.t("admin.site_customization.content_blocks.content_block.names.footer"), from: "site_customization_content_block_name"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [136/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

visit admin_site_customization_information_texts_path

click_link 'Proposals'
expect(find("a[href=\"/admin/site_customization/information_texts?tab=proposals\"].is-active")).to have_content "Proposals"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [127/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

@@ -48,6 +48,13 @@
click_link 'Welcome'
expect(page).to have_content 'See all recommended debates'
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)

@@ -1,5 +1,5 @@
class SiteCustomization::ContentBlock < ActiveRecord::Base
VALID_BLOCKS = %w(top_links footer)
VALID_BLOCKS = %w(top_links footer subnavigation_left subnavigation_right)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ]. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces)

Copy link
Member

@voodoorai2000 voodoorai2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌🏻

Copy link
Member

@voodoorai2000 voodoorai2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

MariaCheca and others added 22 commits October 29, 2018 14:20
Changes introduced in commits 41f66fa and dc87b75 will render the
'See results' button under `admin/budget_investments` only if a
finished budget has winner investments associated with it
Bumps [unicorn](https://bogomips.org/unicorn/) from 5.4.0 to 5.4.1.

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [ffi](https://github.com/ffi/ffi) from 1.9.23 to 1.9.25. **This update includes security fixes.**
- [Release notes](https://github.com/ffi/ffi/releases)
- [Changelog](https://github.com/ffi/ffi/blob/master/CHANGELOG.md)
- [Commits](ffi/ffi@1.9.23...1.9.25)

Signed-off-by: dependabot[bot] <[email protected]>
dependabot-support and others added 4 commits October 29, 2018 14:20
Bumps [coveralls](https://coveralls.io) from 0.8.21 to 0.8.22.

Signed-off-by: dependabot[bot] <[email protected]>
This reverts commit 1548c6bff31f0398a95e8cda28a4802ec1803d2e.
@decabeza decabeza merged commit ab99e1c into master Oct 29, 2018
@decabeza decabeza moved this from Review to Backport in Roadmap Oct 29, 2018
@decabeza decabeza moved this from Backport to Done in Roadmap Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

9 participants