Created
December 11, 2014 01:04
-
-
Save robbkidd/1f03db97b7b06d0cd032 to your computer and use it in GitHub Desktop.
RSpec in Your Ruby
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
require 'rspec' | |
class HiThere | |
def blarg | |
"hi there" | |
end | |
end | |
describe HiThere do | |
it 'says hi' do | |
subject.blarg == "hi there" | |
end | |
end |
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
» be rspec --format doc blargle.rb | |
HiThere | |
says hi | |
Finished in 0.00055 seconds (files took 0.27761 seconds to load) | |
1 example, 0 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!