aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/stringscanner/append_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/append_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/append_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/library/stringscanner/append_spec.rb b/spec/ruby/library/stringscanner/append_spec.rb
new file mode 100644
index 0000000000..f75b3cc715
--- /dev/null
+++ b/spec/ruby/library/stringscanner/append_spec.rb
@@ -0,0 +1,11 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../shared/concat.rb', __FILE__)
+require 'strscan'
+
+describe "StringScanner#<<" do
+ it_behaves_like :strscan_concat, :<<
+end
+
+describe "StringScanner#<< when passed a Fixnum" do
+ it_behaves_like :strscan_concat_fixnum, :<<
+end