summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/pos_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/pos_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/pos_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/stringscanner/pos_spec.rb b/spec/ruby/library/stringscanner/pos_spec.rb
index 059e6ff846..275fecf0f3 100644
--- a/spec/ruby/library/stringscanner/pos_spec.rb
+++ b/spec/ruby/library/stringscanner/pos_spec.rb
@@ -1,11 +1,11 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../shared/pos.rb', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'shared/pos'
require 'strscan'
describe "StringScanner#pos" do
- it_behaves_like(:strscan_pos, :pos)
+ it_behaves_like :strscan_pos, :pos
end
describe "StringScanner#pos=" do
- it_behaves_like(:strscan_pos_set, :pos=)
+ it_behaves_like :strscan_pos_set, :pos=
end