diff options
| author | mo k <mo@mokhan.ca> | 2012-11-07 21:34:00 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-11-07 21:34:00 -0700 |
| commit | 8d5ba18d8be3ab00a9cd37219e058c2e5696fbe9 (patch) | |
| tree | 76e8cb60959f08b2f88f21bfc124a2fd64d3cc6a /spec/controllers | |
| parent | 6713f241e5092cdc29f5d0a39c2aa0ceab76a570 (diff) | |
split DTO, mapper and query into separate files.
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/creations_controller_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/controllers/creations_controller_spec.rb b/spec/controllers/creations_controller_spec.rb index 39cb7f43..efdb983a 100644 --- a/spec/controllers/creations_controller_spec.rb +++ b/spec/controllers/creations_controller_spec.rb @@ -13,7 +13,11 @@ describe CreationsController do describe "GET index" do it "assigns all creations as @creations" do get :index - assigns(:creations).should eq([creation]) + creation = assigns(:creations).first + creation.id.should == creation.id + creation.name.should == creation.name + creation.story.should == creation.story + creation.user.should == creation.user end end |
