[STABLE] All tests passing! 🎉

pull/303/head
Rick Carlino 2016-12-20 09:16:59 -06:00
parent bfe6d354ea
commit 7ad65d4095
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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")