Last active
June 8, 2020 04:03
-
-
Save IvanDerlich/599567d24ea2ff0bedc4516734cbc8b0 to your computer and use it in GitHub Desktop.
ATTENTION: Gist for Rspec Article. Published in medium first.
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
def sum x , y | |
x + y | |
end | |
describe "sum" do | |
it "5 + 9 = 14" do | |
expect( | |
sum(5,9) | |
).to be(14) | |
end | |
it "5 + 9 = 14" do | |
expect( | |
sum(5,9) | |
).not_to be(13) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment