Created
November 12, 2012 03:19
-
-
Save chrismanderson/4057304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "Application 'Tests'" do | |
before do | |
@app = UIApplication.sharedApplication | |
end | |
it "has one window" do | |
@app.windows.size.should == 1 | |
end | |
describe "button controller" do | |
tests ButtonController | |
it "changes instance variable when button is tapped" do | |
tap 'Test me!' | |
controller.instance_variable_get("@was_tapped").should == true | |
end | |
end | |
end | |
---------------- | |
button controller | |
- changes instance variable when button is tapped [FAILED] | |
Bacon::Error: nil.==(true) failed | |
spec.rb:553:in `satisfy:': button controller - changes instance variable when button is tapped | |
spec.rb:567:in `method_missing:' | |
spec.rb:183:in `block in run_spec_block' | |
spec.rb:307:in `execute_block' | |
spec.rb:183:in `run_spec_block' | |
spec.rb:198:in `run' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment