Skip to content

Instantly share code, notes, and snippets.

it "should result in '13' when given a '11'" do
machine.encode( "11" ).should == "13"
end
it "should result in '147' when given a '123'" do
machine.encode( "123" ).should == "147"
end
it "should result in '147A' when given a '1234'" do
# how
curl -i -X PUT -d '{"answer":"<answer_goes_here>"}' http://minisculus.edendevelopment.co.uk/<question_id_here>
# e.g.
curl -i -X PUT -d '{"answer":"incorrect"}' http://minisculus.edendevelopment.co.uk/14f7ca5f6ff1a5afb9032aa5e533ad95