Created
November 18, 2010 23:54
-
-
Save niku/705911 to your computer and use it in GitHub Desktop.
こんなテストが通るような実装を考えている
This file contains 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 'rspec' | |
describe do | |
it do | |
ary = [:one, :two] | |
context(ary) do | |
send(:[],0) | |
end.should == :one | |
end | |
it do | |
ary = [:one, :two] | |
context(ary) do | |
send(:[],1) | |
end.should == :two | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment