Skip to content

Instantly share code, notes, and snippets.

@takai
Created January 5, 2009 02:26
Show Gist options
  • Save takai/43234 to your computer and use it in GitHub Desktop.
Save takai/43234 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'spec'
describe Spec do
before do
@object = Class.new {
def something?
true
end
}.new
end
it 'should return true when something? is called' do
@object.something?.should equal true
end
it 'should respond to should_be_something.' do
@object.should respond_to :should_be_something
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment