Sha256: f5e42c0ec754db4daa1c580b5a2d6bc65ea53ddf0138af39626e82095d8f33d7
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
describe("Factory Response", function() { var service; beforeEach(function(){ module('keysServices'); inject(function(Response){ service = Response; }); window.basePath = ''; }); describe("valid method", function(){ beforeEach(function(){ response = jasmine.createSpyObj('response', ['errors']); }); it("tells if a response is valid", function(){ response.errors.andReturn('undefined'); expect(service.valid(response)).toBeFalsy; }); it("tells if a response isn't valid", function(){ response.errors.andReturn('xpto'); expect(service.valid(response)).toBeTruthy; }); }); });
Version data entries
3 entries across 3 versions & 1 rubygems