Skip to content

Instantly share code, notes, and snippets.

@hexgnu
Created January 18, 2012 05:25
Show Gist options
  • Save hexgnu/1631157 to your computer and use it in GitHub Desktop.
Save hexgnu/1631157 to your computer and use it in GitHub Desktop.
1) PostsController deliver_notifications delivers emails to notifiable users
Failure/Error: controller.send(:deliver_notifications, true)
<ReviewerNotificationMailer (class)> received :notification_email with unexpected arguments
expected: (#<RSpec::Mocks::Mock:0x8707bd90 @name="User">, #<RSpec::Mocks::Mock:0x870816f0 @name=nil>)
got: (#<RSpec::Mocks::Mock:0x8707bd90 @name="User">, #<RSpec::Mocks::Mock:0x871a1a30 @name=nil>)
# ./app/controllers/posts_controller.rb:177:in `block in deliver_notifications'
# ./app/controllers/posts_controller.rb:176:in `each'
# ./app/controllers/posts_controller.rb:176:in `deliver_notifications'
# ./spec/controllers/posts_controller_spec.rb:361:in `block (3 levels) in <top (required)>'
2) User can_access_brand_settings? returns true if user is a brand_admin in the passed brand
Failure/Error: user.can_access_brand_settings?(b).should be_true
expected false to be true
# ./spec/models/user_spec.rb:219:in `block (3 levels) in <top (required)>'
3) User can_access_brand_settings? returns true if user is at least an executive globally
Failure/Error: user.can_access_brand_settings?(b).should be_true
expected false to be true
# ./spec/models/user_spec.rb:224:in `block (3 levels) in <top (required)>'
4) User author? returns true if user is author in current_brand
Failure/Error: user.author?(b).should be_true
expected false to be true
# ./spec/models/user_spec.rb:238:in `block (3 levels) in <top (required)>'
5) User author? returns false if user is anything other then an author
Failure/Error: user.author?(b).should be_true
expected false to be true
# ./spec/models/user_spec.rb:243:in `block (3 levels) in <top (required)>'
6) Organization account activity reports can be filtered by submitting form for filters
Failure/Error: )
ActiveRecord::RecordNotFound:
Couldn't find Organization with id=reports
# ./app/controllers/application_controller.rb:91:in `block in <class:ApplicationController>'
# ./app/controllers/application_controller.rb:353:in `info_for_paper_trail'
# (eval):2:in `click_button'
# ./spec/support/request_macros.rb:21:in `filter_audit_report'
# ./spec/requests/organizations/reports/account_activity_reports_spec.rb:58:in `block (2 levels) in <top (required)>'
7) Posts by status reports displays posts of status type specified by user
Failure/Error: select_box = find('#status')
Capybara::ElementNotFound:
Unable to find css "#status"
# (eval):2:in `find'
# ./spec/requests/organizations/reports/posts_by_status_reports_spec.rb:34:in `block (2 levels) in <top (required)>'
Finished in 78101.31 seconds
1782 examples, 7 failures, 15 pending
Failed examples:
rspec ./spec/controllers/posts_controller_spec.rb:357 # PostsController deliver_notifications delivers emails to notifiable users
rspec ./spec/models/user_spec.rb:217 # User can_access_brand_settings? returns true if user is a brand_admin in the passed brand
rspec ./spec/models/user_spec.rb:222 # User can_access_brand_settings? returns true if user is at least an executive globally
rspec ./spec/models/user_spec.rb:236 # User author? returns true if user is author in current_brand
rspec ./spec/models/user_spec.rb:241 # User author? returns false if user is anything other then an author
rspec ./spec/requests/organizations/reports/account_activity_reports_spec.rb:49 # Organization account activity reports can be filtered by submitting form for filters
rspec ./spec/requests/organizations/reports/posts_by_status_reports_spec.rb:23 # Posts by status reports displays posts of status type specified by user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment