summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time/wednesday_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/wednesday_spec.rb')
-rw-r--r--spec/ruby/core/time/wednesday_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/time/wednesday_spec.rb b/spec/ruby/core/time/wednesday_spec.rb
index 8e836e3e02..cc686681d7 100644
--- a/spec/ruby/core/time/wednesday_spec.rb
+++ b/spec/ruby/core/time/wednesday_spec.rb
@@ -1,11 +1,11 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "Time#wednesday?" do
it "returns true if time represents Wednesday" do
- Time.local(2000, 1, 5).wednesday?.should == true
+ Time.local(2000, 1, 5).should.wednesday?
end
it "returns false if time doesn't represent Wednesday" do
- Time.local(2000, 1, 1).wednesday?.should == false
+ Time.local(2000, 1, 1).should_not.wednesday?
end
end