-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
|
||
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedDescription)
RSpec/RepeatedExample: Don't repeat examples within an example group. (http://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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 | |||
|
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
Bumps [mdl](https://github.com/mivok/markdownlint) from 0.4.0 to 0.5.0. - [Release notes](https://github.com/mivok/markdownlint/releases) - [Changelog](https://github.com/markdownlint/markdownlint/blob/master/CHANGELOG.md) - [Commits](markdownlint/markdownlint@v0.4.0...v0.5.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [scss_lint](https://github.com/brigade/scss-lint) from 0.54.0 to 0.55.0. - [Release notes](https://github.com/brigade/scss-lint/releases) - [Changelog](https://github.com/brigade/scss-lint/blob/master/CHANGELOG.md) - [Commits](sds/scss-lint@v0.54.0...v0.55.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [unicorn](https://bogomips.org/unicorn/) from 5.4.0 to 5.4.1. Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 1.2.1 to 1.2.2. **This update includes security fixes.** - [Release notes](https://github.com/rubyzip/rubyzip/releases) - [Changelog](https://github.com/rubyzip/rubyzip/blob/master/Changelog.md) - [Commits](rubyzip/rubyzip@v1.2.1...v1.2.2) Signed-off-by: dependabot[bot] <support@dependabot.com>
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] <support@dependabot.com>
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.8.2 to 1.8.4. **This update includes security fixes.** - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md) - [Commits](sparklemotion/nokogiri@v1.8.2...v1.8.4) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [savon](https://github.com/savonrb/savon) from 2.11.2 to 2.12.0. - [Release notes](https://github.com/savonrb/savon/releases) - [Changelog](https://github.com/savonrb/savon/blob/master/CHANGELOG.md) - [Commits](savonrb/savon@v2.11.2...v2.12.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [autoprefixer-rails](https://github.com/ai/autoprefixer-rails) from 8.2.0 to 9.1.4. - [Release notes](https://github.com/ai/autoprefixer-rails/releases) - [Changelog](https://github.com/ai/autoprefixer-rails/blob/master/CHANGELOG.md) - [Commits](ai/autoprefixer-rails@8.2.0...9.1.4) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [capistrano-rails](https://github.com/capistrano/rails) from 1.3.1 to 1.4.0. - [Release notes](https://github.com/capistrano/rails/releases) - [Changelog](https://github.com/capistrano/rails/blob/master/CHANGELOG.md) - [Commits](capistrano/rails@v1.3.1...v1.4.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [ancestry](https://github.com/stefankroes/ancestry) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/stefankroes/ancestry/releases) - [Changelog](https://github.com/stefankroes/ancestry/blob/master/CHANGELOG.md) - [Commits](stefankroes/ancestry@v3.0.1...v3.0.2) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [paranoia](https://github.com/rubysherpas/paranoia) from 2.4.0 to 2.4.1. - [Release notes](https://github.com/rubysherpas/paranoia/releases) - [Changelog](https://github.com/rubysherpas/paranoia/blob/core/CHANGELOG.md) - [Commits](rubysherpas/paranoia@v2.4.0...v2.4.1) Signed-off-by: dependabot[bot] <support@dependabot.com>
Bumps [coveralls](https://coveralls.io) from 0.8.21 to 0.8.22. Signed-off-by: dependabot[bot] <support@dependabot.com>
This reverts commit 1548c6bff31f0398a95e8cda28a4802ec1803d2e.
Objectives
This PR sync this repo with some changes made on CONSUL repo including the following PRs:
Adds logic to show 'see results' button only for finished budgets Adds logic to show 'see results' button only for finished budgets consuldemocracy/consuldemocracy#2804
Translate static pages Translate static pages consuldemocracy/consuldemocracy#2834
Configurable top right and main navigation menus Configurable Top Right and Main Navigation Menus consuldemocracy/consuldemocracy#2785
Upgrade gem coffee-rails to version 4.2.2 Upgrade gem coffee-rails to version 4.2.2 consuldemocracy/consuldemocracy#2837
Fix a misleading comment Fix a misleading comment consuldemocracy/consuldemocracy#2844
Fix Rubocop warnings for Admin controllers Fix Rubocop warnings for Admin controllers consuldemocracy/consuldemocracy#2880
Bump mdl from 0.4.0 to 0.5.0 Bump mdl from 0.4.0 to 0.5.0 consuldemocracy/consuldemocracy#2892
Bump scss_lint from 0.54.0 to 0.55.0 Bump scss_lint from 0.54.0 to 0.55.0 consuldemocracy/consuldemocracy#2895
Bump unicorn from 5.4.0 to 5.4.1 Bump unicorn from 5.4.0 to 5.4.1 consuldemocracy/consuldemocracy#2894
[Security] Bump rubyzip from 1.2.1 to 1.2.2 [Security] Bump rubyzip from 1.2.1 to 1.2.2 consuldemocracy/consuldemocracy#2879
[Security] Bump ffi from 1.9.23 to 1.9.25 [Security] Bump ffi from 1.9.23 to 1.9.25 consuldemocracy/consuldemocracy#2877
[Security] Bump nokogiri from 1.8.2 to 1.8.4 [Security] Bump nokogiri from 1.8.2 to 1.8.4 consuldemocracy/consuldemocracy#2878
Bump savon from 2.11.2 to 2.12.0 Bump savon from 2.11.2 to 2.12.0 consuldemocracy/consuldemocracy#2891
Add placeholder configuration for SMTP Add placeholder configuration for SMTP consuldemocracy/consuldemocracy#2900
Show active tab in custom info texts Show active tab in custom info texts consuldemocracy/consuldemocracy#2898
Bump ancestry from 3.0.1 to 3.0.2 Bump ancestry from 3.0.1 to 3.0.2 consuldemocracy/consuldemocracy#2908
Bump paranoia from 2.4.0 to 2.4.1 Bump paranoia from 2.4.0 to 2.4.1 consuldemocracy/consuldemocracy#2909
Bump coveralls from 0.8.21 to 0.8.22 Bump coveralls from 0.8.21 to 0.8.22 consuldemocracy/consuldemocracy#2905
Backport
Backport the last commit to fix houndci-bot warnings in the CONSUL repo too.