spec/code/parser/string_spec.rb in code-ruby-0.5.6 vs spec/code/parser/string_spec.rb in code-ruby-0.6.0
- old
+ new
@@ -1,21 +1,20 @@
+# frozen_string_literal: true
+
require "spec_helper"
RSpec.describe Code::Parser::String do
- subject { Code::Parser.parse(input) }
-
[
"''",
'""',
"'Hello Dorian'",
'"Hello Dorian"',
"'Hello \\{name}'",
'"Hello \\{name}"',
"'Hello {name}'",
'"Hello {name}"'
].each do |input|
- context input do
- let(:input) { input }
- it { subject }
+ it "parses #{input}" do
+ Code::Parser.parse(input)
end
end
end