Skip to content

Instantly share code, notes, and snippets.

@IvanDerlich
Last active June 8, 2020 04:03
Show Gist options
  • Save IvanDerlich/599567d24ea2ff0bedc4516734cbc8b0 to your computer and use it in GitHub Desktop.
Save IvanDerlich/599567d24ea2ff0bedc4516734cbc8b0 to your computer and use it in GitHub Desktop.
ATTENTION: Gist for Rspec Article. Published in medium first.
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