Skip to content

Instantly share code, notes, and snippets.

@carols10cents
Created October 2, 2010 15:22
Show Gist options
  • Save carols10cents/607718 to your computer and use it in GitHub Desktop.
Save carols10cents/607718 to your computer and use it in GitHub Desktop.
require 'test_two'
class Poop < TestTwo
attr_accessor :something
end
describe "test_two" do
before(:all) do
@poop = Poop.new
end
it "should let you set something" do
@poop.set_something(3)
end
it "should let you get something" do
@poop.get_something
end
it "should let you set something then get it" do
v = @poop.set_something(3)
v.should eql @poop.get_something
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment