Skip to content

Commit

Permalink
Account for new venue-related ENV vars in hide registration spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mxie committed May 4, 2019
1 parent 05e8d6e commit e1698a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/features/hide_registration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
require "rails_helper"

feature "Hiding registration" do
let(:venue_name) { "Cool venue" }
let(:venue_address) { "123 Main Street" }
let(:url) { "http://example.com/event" }

context "when registration is not hidden" do
scenario "live events show up" do
ClimateControl.modify VENUE_NAME: venue_name do
ClimateControl.modify VENUE_NAME: venue_name, VENUE_ADDRESS: venue_address, EVENT_URL: url do
visit root_path

expect(page).to have_content venue_name
Expand All @@ -14,7 +18,7 @@

context "when registration is hidden because a live event isn't ready" do
around do |example|
ClimateControl.modify HIDE_REGISTRATION: "true", VENUE_NAME: venue_name do
ClimateControl.modify HIDE_REGISTRATION: "true" do
example.run
end
end
Expand Down

0 comments on commit e1698a8

Please sign in to comment.