Skip to content

Commit

Permalink
Fix ambiguous syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
blaknite committed Feb 9, 2021
1 parent d7b4d46 commit 548a9d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/instruction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
context 'when defining an instruction' do
context 'when the instruction is valid' do
it 'should define the instruction' do
expect{ Instruction.define :JMP {} }.not_to raise_error
expect{ Instruction.define(:JMP) {} }.not_to raise_error
end
end

context 'when the instruction is invalid' do
it 'should define the instruction' do
expect{ Instruction.define :test {} }.to raise_error(StandardError, 'invalid instruction: test')
expect{ Instruction.define(:test) {} }.to raise_error(StandardError, 'invalid instruction: test')
end
end
end
Expand Down

0 comments on commit 548a9d7

Please sign in to comment.