spec/rley/parser/error_reason_spec.rb in rley-0.7.07 vs spec/rley/parser/error_reason_spec.rb in rley-0.7.08
- old
+ new
@@ -44,12 +44,12 @@
# Default instantiation rule
subject { ExpectationNotMet.new(3, err_token, terminals) }
context 'Initialization:' do
it 'should be created with arguments' do
- expect do
- ExpectationNotMet.new(3, err_token, terminals)
+ expect do
+ ExpectationNotMet.new(3, err_token, terminals)
end.not_to raise_error
end
it 'should know the error position' do
expect(subject.rank).to eq(3)
@@ -73,12 +73,12 @@
# Default instantiation rule
subject { UnexpectedToken.new(3, err_token, terminals) }
context 'Initialization:' do
it 'should be created with arguments' do
- expect do
- UnexpectedToken.new(3, err_token, terminals)
+ expect do
+ UnexpectedToken.new(3, err_token, terminals)
end.not_to raise_error
end
end # context
context 'Provided services:' do
@@ -105,11 +105,11 @@
# Default instantiation rule
subject { PrematureInputEnd.new(3, err_token, terminals) }
context 'Initialization:' do
it 'should be created with arguments' do
- expect do
- PrematureInputEnd.new(3, err_token, terminals)
+ expect do
+ PrematureInputEnd.new(3, err_token, terminals)
end.not_to raise_error
end
end # context
context 'Provided services:' do