mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-23 12:27:56 +08:00
15 lines
418 B
Ruby
15 lines
418 B
Ruby
# require File.expand_path('../../../spec_helper', __FILE__)
|
|
# require File.expand_path('../fixtures/methods', __FILE__)
|
|
|
|
ruby_version_is "1.9" do
|
|
describe "Time#monday?" do
|
|
it "returns true if time represents Monday" do
|
|
Time.local(2000, 1, 3).monday?.should == true
|
|
end
|
|
|
|
it "returns false if time doesn't represent Monday" do
|
|
Time.local(2000, 1, 1).monday?.should == false
|
|
end
|
|
end
|
|
end
|