Skip to content

Instantly share code, notes, and snippets.

@zilkey
Created February 6, 2009 20:40
Show Gist options
  • Save zilkey/59598 to your computer and use it in GitHub Desktop.
Save zilkey/59598 to your computer and use it in GitHub Desktop.
class Foo
def bar
"baz"
end
end
if __FILE__ == $0
require 'rubygems'
require 'spec'
describe Foo do
describe "#bar" do
it "should return baz" do
Foo.new.bar.should == "baz"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment