mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-23 12:27:56 +08:00
11 lines
318 B
Ruby
11 lines
318 B
Ruby
# require File.expand_path('../../../spec_helper', __FILE__)
|
|
# require File.expand_path('../fixtures/methods', __FILE__)
|
|
|
|
describe "Time#wday" do
|
|
it "returns an integer representing the day of the week, 0..6, with Sunday being 0" do
|
|
with_timezone("GMT", 0) do
|
|
Time.at(0).wday.should == 4
|
|
end
|
|
end
|
|
end
|