Skip to content

Instantly share code, notes, and snippets.

@laser
Created January 22, 2014 21:32
Show Gist options
  • Save laser/8567757 to your computer and use it in GitHub Desktop.
Save laser/8567757 to your computer and use it in GitHub Desktop.
Stateless Test
describe StatelessCalculator do
it 'should add some numbers' do
expect(StatelessCalculator.add(10, StatelessCalculator.add(5, 3))).to eq(18)
end
it 'should divide some numbers' do
expect(StatelessCalculator.div(10, 2)).to eq(5)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment