summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/string_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/string_spec.rb')
-rw-r--r--spec/ruby/library/stringio/string_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/stringio/string_spec.rb b/spec/ruby/library/stringio/string_spec.rb
index 1ed5233ba6..7c4181b6de 100644
--- a/spec/ruby/library/stringio/string_spec.rb
+++ b/spec/ruby/library/stringio/string_spec.rb
@@ -1,5 +1,5 @@
-require_relative '../../spec_helper'
-require_relative 'fixtures/classes'
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
describe "StringIO#string" do
it "returns the underlying string" do
@@ -45,6 +45,6 @@ describe "StringIO#string=" do
end
it "raises a TypeError when the passed Object can't be converted to an Integer" do
- -> { @io.seek(Object.new) }.should raise_error(TypeError)
+ lambda { @io.seek(Object.new) }.should raise_error(TypeError)
end
end