Skip to content

Instantly share code, notes, and snippets.

@robbkidd
Created December 11, 2014 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbkidd/1f03db97b7b06d0cd032 to your computer and use it in GitHub Desktop.
Save robbkidd/1f03db97b7b06d0cd032 to your computer and use it in GitHub Desktop.
RSpec in Your Ruby
require 'rspec'
class HiThere
def blarg
"hi there"
end
end
describe HiThere do
it 'says hi' do
subject.blarg == "hi there"
end
end
» 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
@jrhorn424
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment