Sha256: 13bc0658e6341597b192cda9c1618611ea55224e2e1d04c798807757a7b9d06b
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
shared_context "logged in", :logged_in do before(:all) do unless session.logged_in? session.login ENV['HALLON_USERNAME'], ENV['HALLON_PASSWORD'] logged_in = session.process_events_on(:logged_in) { |error| error } logged_in.should eq :ok finished = session.process_events_on(:connection_error) { |error| session.logged_in? or error } finished.should be_true end session.should be_logged_in end before(:each) { session.should be_logged_in } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hallon-0.1.1 | spec/support/context_logged_in.rb |
hallon-0.1.0 | spec/support/context_logged_in.rb |