Skip to content

Commit

Permalink
Clarify specs
Browse files Browse the repository at this point in the history
  • Loading branch information
taitus committed Sep 27, 2019
1 parent 3bf2edf commit 559456a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/settings/_featured_settings_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</thead>
<tbody>
<% features.each do |feature| %>
<tr>
<tr class="setting">
<td class="small-8">
<strong><%= t("settings.#{feature.key}") %></strong>
<br>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/settings/_mixed_settings_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</thead>
<tbody>
<% settings.each do |setting| %>
<tr>
<tr class="setting">
<td class="small-6">
<strong><%= t("settings.#{setting.key}") %></strong>
<br>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/settings/_settings_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</thead>
<tbody>
<% settings.each do |setting| %>
<tr>
<tr class="setting">
<td class="small-6">
<strong><%= t("settings.#{setting.key}") %></strong>
<br>
Expand Down
10 changes: 5 additions & 5 deletions spec/features/admin/wizards/installer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
expect(page).to have_link("Back", href: new_admin_wizards_installer_path)
expect(page).to have_link("Next", href: admin_wizards_installer_path(:participation_process))
within "#installer-general-settings" do
expect(page).to have_css("table tbody tr", count: 2)
expect(page).to have_css(".setting", count: 2)
expect(page).to have_content "Site name"
expect(page).to have_content "Minimum age needed to participate"
end
Expand All @@ -44,7 +44,7 @@
expect(page).to have_link("Back", href: admin_wizards_installer_path(:general_settings))
expect(page).to have_link("Next", href: admin_wizards_installer_path(:map))
within "#installer-participation-process" do
expect(page).to have_css("table tbody tr", count: 5)
expect(page).to have_css(".setting", count: 5)
expect(page).to have_content "Debates"
expect(page).to have_content "Proposals"
expect(page).to have_content "Number of supports necessary for approval of a Proposal"
Expand All @@ -63,7 +63,7 @@
expect(page).to have_link("Back", href: admin_wizards_installer_path(:participation_process))
expect(page).to have_link("Next", href: admin_wizards_installer_path(:smtp))
within "#installer-map" do
expect(page).to have_css("table tbody tr", count: 4)
expect(page).to have_css(".setting", count: 4)
expect(page).to have_content "Proposals and budget investments geolocation"
expect(page).to have_content "Latitude"
expect(page).to have_content "Longitude"
Expand All @@ -81,7 +81,7 @@
expect(page).to have_link("Back", href: admin_wizards_installer_path(:map))
expect(page).to have_link("Next", href: admin_wizards_installer_path(:regional))
within "#installer-smtp" do
expect(page).to have_css("table tbody tr", count: 8)
expect(page).to have_css(".setting", count: 8)
expect(page).to have_content "SMTP Configuration"
expect(page).to have_content "SMTP Host"
expect(page).to have_content "SMTP Port"
Expand All @@ -103,7 +103,7 @@
expect(page).to have_link("Back", href: admin_wizards_installer_path(:smtp))
expect(page).to have_link("Next", href: admin_wizards_installer_path(:finish))
within "#installer-regional" do
expect(page).to have_css("table tbody tr", count: 29)
expect(page).to have_css(".setting", count: 29)
expect(page).to have_content "Application default locale"
expect(page).to have_content "Application available locales"
expect(page).to have_content "Time Zone"
Expand Down

0 comments on commit 559456a

Please sign in to comment.