Skip to content

Instantly share code, notes, and snippets.

@niku
Created November 18, 2010 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niku/705911 to your computer and use it in GitHub Desktop.
Save niku/705911 to your computer and use it in GitHub Desktop.
こんなテストが通るような実装を考えている
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