Skip to content

Instantly share code, notes, and snippets.

@ramtiga
Created September 16, 2013 08:29
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 ramtiga/6577977 to your computer and use it in GitHub Desktop.
Save ramtiga/6577977 to your computer and use it in GitHub Desktop.
Calc
require_relative "calc"
describe Calc do
describe '#sum' do
it 'add two numbers' do
subject.sum(2, 8).should == 10
subject.sum(-12, 5).should == -7
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment