Changeset [a1a310c60381abf756928ae4f8849cfcdb333035] by Jason Lee

June 24th, 2017 @ 02:09 AM

Convert specs to RSpec 3.6.0 syntax with Transpec

This conversion is done by Transpec 3.3.0 with the following command:
transpec

  • 498 conversions from: obj.should to: expect(obj).to

  • 336 conversions from: == expected to: eq(expected)

  • 274 conversions from: obj.stub(:message) to: allow(obj).to receive(:message)

  • 179 conversions from: obj.should_receive(:message) to: expect(obj).to receive(:message)

  • 40 conversions from: lambda { }.should to: expect { }.to

  • 10 conversions from: obj.should_not to: expect(obj).not_to

  • 10 conversions from: obj.should_not_receive(:message) to: expect(obj).not_to receive(:message)

  • 1 conversion from: lambda { }.should_not to: expect { }.not_to

For more details: https://github.com/yujinakayama/transpec#supported-conversions
https://github.com/ianwhite/resources_controller/commit/a1a310c6038...

Committed by Jason Lee

  • M spec/controllers/accounts_controller_spec.rb
  • M spec/controllers/addresses_controller_spec.rb
  • M spec/controllers/admin_forums_controller_spec.rb
  • M spec/controllers/comments_controller_spec.rb
  • M spec/controllers/comments_controller_with_models_spec.rb
  • M spec/controllers/forum_posts_controller_spec.rb
  • M spec/controllers/forums_controller_spec.rb
  • M spec/controllers/infos_controller_spec.rb
  • M spec/controllers/interests_controller_via_forum_spec.rb
  • M spec/controllers/interests_controller_via_user_spec.rb
  • M spec/controllers/owners_controller_spec.rb
  • M spec/controllers/resource_saved_spec.rb
  • M spec/controllers/resource_service_in_forums_controller_spec.rb
  • M spec/controllers/resource_service_in_infos_controller_spec.rb
  • M spec/controllers/resource_service_in_interests_controller_via_forum_spec.rb
  • M spec/controllers/tags_controller_spec.rb
  • M spec/controllers/tags_controller_via_account_info_spec.rb
  • M spec/controllers/tags_controller_via_forum_post_comment_spec.rb
  • M spec/controllers/tags_controller_via_forum_post_spec.rb
  • M spec/controllers/tags_controller_via_forum_spec.rb
  • M spec/controllers/tags_controller_via_user_address_spec.rb
  • M spec/controllers/users_controller_spec.rb
  • M spec/lib/action_view_helper_spec.rb
  • M spec/lib/bug_0001_spec.rb
  • M spec/lib/include_actions_spec.rb
  • M spec/lib/load_enclosing_resources_spec.rb
  • M spec/lib/request_path_introspection_spec.rb
  • M spec/lib/resource_methods_spec.rb
  • M spec/lib/resources_controller_spec.rb
  • M spec/models/comment_saved_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

resources_controller is a rails plugin that eases the pain of RESTful controllers.