diff --git a/monitor/spec/production_spec.rb b/monitor/spec/production_spec.rb index bfe16d4f2..060c65b0b 100755 --- a/monitor/spec/production_spec.rb +++ b/monitor/spec/production_spec.rb @@ -5,6 +5,7 @@ require 'spec_helper' # Jenkins executes rspec on this folder every 15 minutes or so. # SO don't use this to test something like a public session unless you want all the world to see +# (theoretically) Google Analytics does not track requests made from this fake jam client www = ENV['MONITOR_URL'] || 'http://www.jamkazam.com' @@ -32,12 +33,16 @@ describe "Deployed site at #{www}", :js => true, :type => :feature, :capybara_fe first_name + ' ' + last_name end end - user1 = TestUser.new({ email: 'anthony+jim@jamkazam.com', password: 'j4m!t3st3r', first_name: 'Jim', last_name: 'Smith', id: '68e8eea2-140d-44c1-b711-10d07ce70f96' }) - user2 = TestUser.new({ email: 'anthony+john@jamkazam.com', password: 'j4m!t3st3r', first_name: 'John', last_name: 'Jones', id: '5bbcf689-2f73-452d-815a-c4f44e9e7f3e' }) -# before(:each) do -# emulate_client -# end + if www =~ /staging/ + # use staging accounts + user1 = TestUser.new({ email: 'anthony+jim@jamkazam.com', password: 'j4m!t3st3r', first_name: 'Jim', last_name: 'Smith', id: '43fb60a7-7b6a-4aa6-af3c-59b1e58a842b' }) + user2 = TestUser.new({ email: 'anthony+john@jamkazam.com', password: 'j4m!t3st3r', first_name: 'John', last_name: 'Jones', id: '54c5d5c1-aa44-4db8-9bac-922ead64162e' }) + else + # use production accounts + user1 = TestUser.new({ email: 'anthony+jim@jamkazam.com', password: 'j4m!t3st3r', first_name: 'Jim', last_name: 'Smith', id: '68e8eea2-140d-44c1-b711-10d07ce70f96' }) + user2 = TestUser.new({ email: 'anthony+john@jamkazam.com', password: 'j4m!t3st3r', first_name: 'John', last_name: 'Jones', id: '5bbcf689-2f73-452d-815a-c4f44e9e7f3e' }) + end it "is possible for #{user1} to sign in and not get disconnected within 30 seconds" do in_client(user1) do