diff --git a/decidim-conferences/spec/controllers/conferences_controller_spec.rb b/decidim-conferences/spec/controllers/conferences_controller_spec.rb index db9c6fd7c4..39a93387e0 100644 --- a/decidim-conferences/spec/controllers/conferences_controller_spec.rb +++ b/decidim-conferences/spec/controllers/conferences_controller_spec.rb @@ -4,7 +4,7 @@ module Decidim module Conferences - describe ConferencesController do + describe RegistrationTypesControllerController do routes { Decidim::Conferences::Engine.routes } let(:organization) { create(:organization) } diff --git a/decidim-conferences/spec/system/conference_registrations_spec.rb b/decidim-conferences/spec/system/conference_registrations_spec.rb index 04e6cddd37..939ec19800 100644 --- a/decidim-conferences/spec/system/conference_registrations_spec.rb +++ b/decidim-conferences/spec/system/conference_registrations_spec.rb @@ -127,6 +127,19 @@ def visit_conference_registration_type expect(page).to have_css("button[disabled]", text: "Registration", count: 4) end end + + context "and there is no registrations types" do + let!(:registration_types) { [] } + + it "allows to register" do + visit_conference + within ".conference__hero" do + expect(page).to have_content "Register" + click_on "Register" + expect(page).to have_content "CHOOSE YOUR REGISTRATION OPTION:" + end + end + end end context "and the user is going to the conference" do