Skip to content

Instantly share code, notes, and snippets.

@bronzdoc
Last active March 13, 2020 19:22
Show Gist options
  • Save bronzdoc/67ad950ac95b667312c7ca0a2c6c6e82 to your computer and use it in GitHub Desktop.
Save bronzdoc/67ad950ac95b667312c7ca0a2c6c6e82 to your computer and use it in GitHub Desktop.
1)
Mocha::ExpectationError in 'ProfilesController shouldn't show index for non participant'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:23:
/app/spec/spec_helper.rb:105:in `assert_access_denied'
./spec/controllers/profiles_controller_spec.rb:22:
2)
Mocha::ExpectationError in 'ProfilesController shoud show edit page'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:28:
3)
Mocha::ExpectationError in 'ProfilesController shoudnt get edit if not that user'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:38:
/app/spec/spec_helper.rb:105:in `assert_access_denied'
./spec/controllers/profiles_controller_spec.rb:37:
4)
Mocha::ExpectationError in 'ProfilesController shoud get edit if admin'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:17:in `edit'
./spec/controllers/profiles_controller_spec.rb:44:
5)
Mocha::ExpectationError in 'ProfilesController should update'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
6) [81/652]
Mocha::ExpectationError in 'ProfilesController should create'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:59:
7)
Mocha::ExpectationError in 'ProfilesController shouldnt get new page if user already has one'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:69:
8)
Mocha::ExpectationError in 'ProfilesController should set the previous group, if there is one'
unexpected invocation: #<AnyInstance:ProfilesController>.current_user()
unsatisfied expectations:
- expected exactly once, not yet invoked: #<AnyInstance:User(id: integer, login: string, email: string, crypted_password: string, salt: string, created_at: datetime, updated_at: datetime, remember_token: string,
remember_token_expires_at: datetime, kind: string, first_name: string, last_name: string, nickname: string, enabled: boolean, email_on_coach_comment: boolean, email_on_comment_to_non_existing_day: boolean, reset$
password_code: string, email_on_user_comment: boolean)>.previous_profile(any_parameters)
satisfied expectations:
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
- allowed any number of times, not yet invoked: #<AnyInstance:ApplicationController>.current_user(any_parameters)
/app/lib/authenticated_system.rb:6:in `logged_in?'
/app/lib/authenticated_system.rb:57:in `login_required'
./spec/controllers/profiles_controller_spec.rb:81:
9)
'Progress and Participation:
As a user
I want to update my progress and comment on others
I should be able to answer my group's activated questions for a day' FAILED
expected #has_content?("Leave A Comment") to return true, got false
./spec/acceptance/progress_feature_spec.rb:79:
10)
Test::Unit::AssertionFailedError in 'Goals Text:
As a user
I want to see my existing goals text
So that I can move them into the multiple goals boxes
anyone can see my existing goal text'
<false> is not true.
./spec/acceptance/goals_text_spec.rb:19:
11)
Test::Unit::AssertionFailedError in 'Goals Text:
As a user
I want to see my existing goals text
So that I can move them into the multiple goals boxes
anyone can see my existing goal text on my progress pages'
<false> is not true.
./spec/acceptance/goals_text_spec.rb:26:
12)
Test::Unit::AssertionFailedError in 'Goals Text:
As a user
I want to see my existing goals text
So that I can move them into the multiple goals boxes
Previous goals are removed after updating new goals'
<false> is not true.
./spec/acceptance/goals_text_spec.rb:50:
13)
Test::Unit::AssertionFailedError in 'Goals:
As a user
I want to add multiple Goals
And have them displayed as a list
anyone can see my existing goal text'
<false> is not true.
./spec/acceptance/goals_spec.rb:21:
14)
Test::Unit::AssertionFailedError in 'Goals:
As a user
I want to add multiple Goals
And have them displayed as a list
anyone can see my existing goal text on my progress pages'
<false> is not true.
./spec/acceptance/goals_spec.rb:27:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment