Last active
September 3, 2015 20:08
-
-
Save cyril/0e911a76783f263607a3 to your computer and use it in GitHub Desktop.
Basic usage of RSpec (with a surprise)
This file contains hidden or 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
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