diff --git a/.gitignore b/.gitignore index 1a572b5..160bb40 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /public/assets /tags /tmp/* +.nyc_output/ \ No newline at end of file diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index 14be75e..8972f48 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -8,7 +8,6 @@ def next_event end def next_event_venue - next_event.venue end diff --git a/spec/features/hide_registration_spec.rb b/spec/features/hide_registration_spec.rb index cd5ea79..311bb67 100644 --- a/spec/features/hide_registration_spec.rb +++ b/spec/features/hide_registration_spec.rb @@ -1,10 +1,8 @@ require "rails_helper" - feature "Hiding registration" do context "when registration is not hidden" do scenario "live events show up" do - # ClimateControl.modify VENUE_MAP_URL: "example.com", NEXT_EVENT_ID: "supersecret" do - ClimateControl.modify VENUE_MAP_URL: "example.com" do + ClimateControl.modify VENUE_MAP_URL: "example.com", NEXT_EVENT_ID: "supersecret" do stub_upcoming_event("Cool Venue") diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 64a1083..267d1ab 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,4 +1,5 @@ ENV["RAILS_ENV"] = "test" +ENV["VENUE_NAME"] = "Cool Venue" require File.expand_path("../../config/environment", __FILE__) require "spec_helper"