Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe My::App do
- before :each do
- # this will be executed before each example
- @app = My::App.new 'test'
- end
- it "should do something" do
- # this is an example
- @app.method.should == 'method'
- end
- it "should do something else" do
- # this is another example
- result = @app.one + 1
- result.should == 2
- end
- end
Add Comment
Please, Sign In to add comment