summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/core/file/birthtime_spec.rb6
-rw-r--r--spec/ruby/core/file/stat/birthtime_spec.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/file/birthtime_spec.rb b/spec/ruby/core/file/birthtime_spec.rb
index eb769f67ff..ff43aa7cef 100644
--- a/spec/ruby/core/file/birthtime_spec.rb
+++ b/spec/ruby/core/file/birthtime_spec.rb
@@ -21,13 +21,13 @@ platform_is :windows, :darwin, :freebsd, :netbsd, :linux do
File.birthtime(@file) # Avoid to failure of mock object with old Kernel and glibc
File.birthtime(mock_to_path(@file))
rescue NotImplementedError => e
- skip e.message if e.message.start_with?("birthtime() function")
+ e.message.should.start_with?("birthtime() function")
end
it "raises an Errno::ENOENT exception if the file is not found" do
-> { File.birthtime('bogus') }.should raise_error(Errno::ENOENT)
rescue NotImplementedError => e
- skip e.message if e.message.start_with?("birthtime() function")
+ e.message.should.start_with?("birthtime() function")
end
end
@@ -45,7 +45,7 @@ platform_is :windows, :darwin, :freebsd, :netbsd, :linux do
@file.birthtime
@file.birthtime.should be_kind_of(Time)
rescue NotImplementedError => e
- skip e.message if e.message.start_with?("birthtime() function")
+ e.message.should.start_with?("birthtime() function")
end
end
end
diff --git a/spec/ruby/core/file/stat/birthtime_spec.rb b/spec/ruby/core/file/stat/birthtime_spec.rb
index 9fc471caec..5350a571aa 100644
--- a/spec/ruby/core/file/stat/birthtime_spec.rb
+++ b/spec/ruby/core/file/stat/birthtime_spec.rb
@@ -18,7 +18,7 @@ platform_is(:windows, :darwin, :freebsd, :netbsd,
st.birthtime.should be_kind_of(Time)
st.birthtime.should <= Time.now
rescue NotImplementedError => e
- skip e.message if e.message.start_with?("birthtime() function")
+ e.message.should.start_with?("birthtime() function")
end
end
end