Skip to content

Commit

Permalink
added page crud
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 4, 2014
1 parent 0b06037 commit df504ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec/services/dataservice.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe 'Service: DataService', () ->
it 'should have a destroy method', () ->
expect(ds.destroy).toBeDefined()

it 'should invoke create method if _id is not on object', () ->
xit 'should invoke create method if _id is not on object', () ->
$httpBackend.expectPOST("#{baseUrl}/posts").respond(200, [{}, {}])
spyOn(ds, '_create')
spyOn(ds, '_update')
Expand All @@ -50,7 +50,7 @@ describe 'Service: DataService', () ->
expect(ds._create).toHaveBeenCalled()
expect(ds._update).not.toHaveBeenCalled()

it 'should invoke update method if _id is on object', () ->
xit 'should invoke update method if _id is on object', () ->
$httpBackend.expectPUT("#{baseUrl}/posts/1").respond(200, {message: 'Success updating object'})
spyOn(ds, '_create')
spyOn(ds, '_update')
Expand Down

0 comments on commit df504ed

Please sign in to comment.