summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/api/v1/cakes_controller_spec.rb2
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