Skip to content

Commit

Permalink
style: update context sentences in system test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef-Rousset committed Apr 25, 2024
1 parent 9f0fcaf commit 64ed888
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions decidim-conferences/spec/system/conference_registrations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def visit_conference_registration_type
end
end

context "and there is published registrations types" do
context "and there are published registrations types" do
it "allows to register" do
visit_conference
within ".conference__hero" do
Expand All @@ -142,12 +142,12 @@ def visit_conference_registration_type
end
end

context "and there is unpublished registrations types" do
context "and there are unpublished registrations types" do
let!(:registration_types) do
create_list(:registration_type, 5, :unpublished, conference:)
end

it "does not show register button" do
it "does not show the register button" do
visit_conference
within ".conference__hero" do
expect(page).to have_no_content "Register"
Expand All @@ -158,10 +158,10 @@ def visit_conference_registration_type
end
end

context "and there is no registrations types" do
context "and there are no registrations types" do
let(:registration_types) { [] }

it "does not show register button" do
it "does not show the register button" do
visit_conference
within ".conference__hero" do
expect(page).to have_no_content "Register"
Expand Down

0 comments on commit 64ed888

Please sign in to comment.