diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-27 21:56:41 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-27 21:56:41 -0700 |
| commit | a03ff0d376e2ecc5006bd67a573c19d035b0c3f0 (patch) | |
| tree | ef64e038e7bc7428317d86e46c14e830a561be99 /spec/controllers | |
| parent | 63a52f3552b940a8222a0ad2cbc647bd92175daf (diff) | |
collapse create cake command.
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/api/v1/cakes_controller_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/api/v1/cakes_controller_spec.rb b/spec/controllers/api/v1/cakes_controller_spec.rb index a03f7e73..d7282cce 100644 --- a/spec/controllers/api/v1/cakes_controller_spec.rb +++ b/spec/controllers/api/v1/cakes_controller_spec.rb @@ -46,9 +46,11 @@ describe Api::V1::CakesController do it 'creates a new project' do xhr :post, :create, cake: { name: 'new-cake', category_id: category.id } + expect(Creation.count).to eql(1) expect(Creation.first.name).to eql('new-cake') expect(Creation.first.category).to eql(category) + expect(Creation.first.user).to eql(user) end end |
