Skip to content

Instantly share code, notes, and snippets.

@laser
Created January 22, 2014 21:31
Show Gist options
  • Save laser/8567741 to your computer and use it in GitHub Desktop.
Save laser/8567741 to your computer and use it in GitHub Desktop.
Stateful Test A
describe StatefulCalculator do
before(:all) do
@subject = StatefulCalculator.new
end
it 'should add some numbers' do
expect(@subject.add(5).add(3).add(10).result).to eq(18)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment