Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use send(cmd).

  • Loading branch information...
commit b8f8eb6765afe915f2ecfdbbe59a53e6393d6865 1 parent f826a40
akr akr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  1.8/core/time/shared/month.rb
2  1.8/core/time/shared/month.rb
View
@@ -1,7 +1,7 @@
shared :time_month do |cmd|
describe "Time##{cmd}" do
it "returns the month of the year" do
- Time.at(99999).mon.should == 1
+ Time.at(99999).send(cmd).should == 1
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.