#= require services/calculate describe "Calculate", -> before -> @service = new Calculate() it "should have serviceName 'ex:services:calculate'", -> expect(@service.serviceName).to.equal('ex:services:calculate') describe "#calculate", -> before -> @service.calculate() it "should calculate result", -> expect(@service.result).to.equal(400) describe "#serve", -> before -> $('#fixtures').html("