spec/fear/extractor/grammar_array_spec.rb in fear-1.0.0 vs spec/fear/extractor/grammar_array_spec.rb in fear-1.1.0
- old
+ new
@@ -1,10 +1,12 @@
-RSpec.describe Fear::Extractor::Grammar, 'Array' do
+# frozen_string_literal: true
+
+RSpec.describe Fear::Extractor::Grammar, "Array" do
let(:parser) { Fear::Extractor::GrammarParser.new }
let(:matcher) { parser.parse(pattern).to_matcher }
- context 'non empty array' do
- let(:pattern) { '[1, 2, 3, 4]' }
+ context "non empty array" do
+ let(:pattern) { "[1, 2, 3, 4]" }
it do
first = matcher.head
rest_after_first = matcher.tail