Skip to content

Instantly share code, notes, and snippets.

@chrismanderson
Created November 12, 2012 03:19
Show Gist options
  • Save chrismanderson/4057304 to your computer and use it in GitHub Desktop.
Save chrismanderson/4057304 to your computer and use it in GitHub Desktop.
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