Created
October 5, 2012 06:20
-
-
Save svs/3838383 to your computer and use it in GitHub Desktop.
RSpec painless output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ItemsController | |
unauthorised | |
does not edit | |
does not new | |
does not index | |
does not show | |
does not update | |
authorised | |
index | |
behaves like authorised index | |
index | |
should assign proper items | |
should respond ok | |
behaves like authorised index | |
index | |
should assign proper items (FAILED - 1) | |
should respond ok | |
behaves like authorised index | |
index | |
should assign proper items | |
should respond ok | |
other actions | |
update | |
it should behave like authorised action | |
should assign proper items | |
should satisfy expectations | |
should render proper template/ redirect properly | |
show | |
it should behave like authorised action | |
should assign proper items | |
should satisfy expectations | |
should render proper template/ redirect properly | |
new | |
it should behave like authorised action | |
should assign proper items | |
should satisfy expectations | |
should render proper template/ redirect properly | |
edit | |
it should behave like authorised action | |
should assign proper items | |
should satisfy expectations | |
should render proper template/ redirect properly | |
create | |
it should behave like authorised action | |
should assign proper items | |
should satisfy expectations | |
should render proper template/ redirect properly | |
Failures: | |
1) ItemsController authorised index behaves like authorised index index should assign proper items | |
Failure/Error: assigns[:items].to_a.should =~ items | |
expected collection contained: [#<Item @id=1 @name="name_1" @taggable=false @user_id=1>, #<Item @id=2 @name="name_2" @taggable=true @user_id=4>] | |
actual collection contained: [#<Item @id=1 @name="name_1" @taggable=false @user_id=1>, #<Item @id=2 @name="name_2" @taggable=true @user_id=4>, #<Item @id=3 @name="name_3" @taggable=false @user_id=5>] | |
the extra elements were: [#<Item @id=3 @name="name_3" @taggable=false @user_id=5>] | |
Shared Example Group: "authorised index" called from ./spec/controllers/items_controller_spec.rb:84 | |
# ./spec/controllers/items_controller_spec.rb:11:in `block (3 levels) in <top (required)>' | |
Finished in 0.7384 seconds | |
26 examples, 1 failure | |
Failed examples: | |
rspec ./spec/controllers/items_controller_spec.rb:10 # ItemsController authorised index behaves like authorised index index should assign proper items | |
Randomized with seed 10358 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment