summaryrefslogtreecommitdiff
path: root/test/ripper
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper')
-rw-r--r--test/ripper/dummyparser.rb1
-rw-r--r--test/ripper/test_files.rb1
-rw-r--r--test/ripper/test_filter.rb3
-rw-r--r--test/ripper/test_ripper.rb1
-rw-r--r--test/ripper/test_scanner_events.rb1
-rw-r--r--test/ripper/test_sexp.rb1
6 files changed, 7 insertions, 1 deletions
diff --git a/test/ripper/dummyparser.rb b/test/ripper/dummyparser.rb
index 35c08b5..3c196d9 100644
--- a/test/ripper/dummyparser.rb
+++ b/test/ripper/dummyparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# dummyparser.rb
#
diff --git a/test/ripper/test_files.rb b/test/ripper/test_files.rb
index 5541a09..7b5fa1d 100644
--- a/test/ripper/test_files.rb
+++ b/test/ripper/test_files.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'test/unit'
module TestRipper; end
diff --git a/test/ripper/test_filter.rb b/test/ripper/test_filter.rb
index 005a5d8..0f9d38f 100644
--- a/test/ripper/test_filter.rb
+++ b/test/ripper/test_filter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'ripper'
require 'test/unit'
@@ -76,7 +77,7 @@ class TestRipper::Filter < Test::Unit::TestCase
def test_filter_token
data = {}
- filter = Filter.new(File.read(filename))
+ filter = Filter.new("begin; puts 1; end")
filter.parse(data)
assert_equal("begin", data[:token])
end
diff --git a/test/ripper/test_ripper.rb b/test/ripper/test_ripper.rb
index 1544e56..e0b65a0 100644
--- a/test/ripper/test_ripper.rb
+++ b/test/ripper/test_ripper.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'ripper'
require 'test/unit'
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 45c1673..ab52392 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# test_scanner_events.rb
#
diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb
index 557ae9b..46fb7f2 100644
--- a/test/ripper/test_sexp.rb
+++ b/test/ripper/test_sexp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'ripper'
require 'test/unit'