diff options
Diffstat (limited to 'spec/ruby/library/stringscanner/pos_spec.rb')
-rw-r--r-- | spec/ruby/library/stringscanner/pos_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/library/stringscanner/pos_spec.rb b/spec/ruby/library/stringscanner/pos_spec.rb new file mode 100644 index 0000000000..059e6ff846 --- /dev/null +++ b/spec/ruby/library/stringscanner/pos_spec.rb @@ -0,0 +1,11 @@ +require File.expand_path('../../../spec_helper', __FILE__) +require File.expand_path('../shared/pos.rb', __FILE__) +require 'strscan' + +describe "StringScanner#pos" do + it_behaves_like(:strscan_pos, :pos) +end + +describe "StringScanner#pos=" do + it_behaves_like(:strscan_pos_set, :pos=) +end |