Created
January 5, 2009 02:26
-
-
Save takai/43234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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