spec/client/template/model/instance_methods_spec.rb in mirage-3.0.0.alpha.11 vs spec/client/template/model/instance_methods_spec.rb in mirage-3.0.0.alpha.12

- old
+ new

@@ -99,16 +99,16 @@ end end describe 'delay' do it 'should default to 0' do - JSON.parse(instance.to_json)["delay"].should == 0 + JSON.parse(instance.to_json)["response"]["delay"].should == 0 end it 'should set the delay' do delay = 5 instance.delay delay - JSON.parse(instance.to_json)["delay"].should == delay + JSON.parse(instance.to_json)["response"]["delay"].should == delay end end describe 'status code' do it 'should default to 200' do \ No newline at end of file