Skip to content

Instantly share code, notes, and snippets.

@cyril
Last active September 3, 2015 20:08
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 cyril/0e911a76783f263607a3 to your computer and use it in GitHub Desktop.
Save cyril/0e911a76783f263607a3 to your computer and use it in GitHub Desktop.
Basic usage of RSpec (with a surprise)
class App
def equal?(*)
true
end
end
require 'rspec'
RSpec.describe App do
it 'is the answer to life, the universe and everything' do
expect(described_class.new).to equal(42)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment