Skip to content

Conversation

@sgerrand
Copy link

💁 The API for RSpec::Expectations has changed in v3.0. These changes update the existing tests to use the :expect syntax.

Sasha Gerrand added 3 commits August 13, 2014 16:37
"DEPRECATION: mock is deprecated. Use double instead."
This conversion is done by Transpec 2.2.0 with the following command:
    transpec

* 157 conversions
    from: obj.should
      to: expect(obj).to

* 129 conversions
    from: == expected
      to: eq(expected)

* 68 conversions
    from: obj.should_receive(:message)
      to: expect(obj).to receive(:message)

* 49 conversions
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

* 12 conversions
    from: proc { }.should
      to: expect { }.to

* 3 conversions
    from: obj.should_not_receive(:message)
      to: expect(obj).not_to receive(:message)

* 2 conversions
    from: obj.should_not
      to: expect(obj).not_to

See also: https://github.com/yujinakayama/transpec#supported-conversions
@sgerrand
Copy link
Author

🙋 These changes branch off #34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant