spec/spec.jquery.xhr.js in visionmedia-jspec-2.8.1 vs spec/spec.jquery.xhr.js in visionmedia-jspec-2.8.2

- old
+ new

@@ -7,9 +7,16 @@ response.foo.should.eql 'bar' statusText.should.eql 'success' }) end + it 'should work with a json fixture' + mockRequest().and_return(fixture('test.json')) + $.getJSON('foo', function(response){ + response.users.tj.email.should.eql 'tj@vision-media.ca' + }) + end + it 'should not invoke callback when response status is 4xx' mockRequest().and_return('foo', 'text/plain', 404) $.getJSON('foo', function(){ fail('callback was invoked') }) \ No newline at end of file