[STABLE] All tests passing! 🎉
parent
bfe6d354ea
commit
7ad65d4095
|
@ -57,10 +57,9 @@ describe CeleryScript::Checker do
|
|||
end
|
||||
|
||||
it 'handles wrong leaf types' do
|
||||
pending("Actually broke?")
|
||||
hash[:body][0][:args][:location]["x"] = "supposed to be a Fixnum"
|
||||
hash[:body][0][:args][:location][:args][:x] = "supposed to be a Fixnum"
|
||||
result = checker.run
|
||||
expect(result.message).to eq("Expected leaf 'x' within 'move_absolute' to"\
|
||||
expect(result.message).to eq("Expected leaf 'x' within 'coordinate' to"\
|
||||
" be one of: [Fixnum] but got String")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,8 +20,7 @@ describe Sequences::Create do
|
|||
|
||||
it 'Gives validation errors for malformed AST nodes' do
|
||||
move_abs = body.select{ |x| x["kind"] == "move_absolute" }.first
|
||||
binding.pry
|
||||
move_abs["args"]["location"]["x"] = "not a number"
|
||||
move_abs["args"]["location"]["args"]["x"] = "not a number"
|
||||
seq = Sequences::Create.run(sequence_params)
|
||||
expect(seq.success?).to be(false)
|
||||
expect(seq.errors["body"].message).to include("but got String")
|
||||
|
|
Loading…
Reference in New Issue