Guest User

Untitled

a guest
Jan 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe My::App do
  4. before :each do
  5. # this will be executed before each example
  6. @app = My::App.new 'test'
  7. end
  8.  
  9. it "should do something" do
  10. # this is an example
  11. @app.method.should == 'method'
  12. end
  13.  
  14. it "should do something else" do
  15. # this is another example
  16. result = @app.one + 1
  17. result.should == 2
  18. end
  19. end
Add Comment
Please, Sign In to add comment