summaryrefslogtreecommitdiff
path: root/test/ripper/test_filter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper/test_filter.rb')
-rw-r--r--test/ripper/test_filter.rb3
1 files changed, 2 insertions, 1 deletions
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