Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to RSpec 3 #46

Merged
merged 7 commits into from
May 12, 2015
Merged

Upgrade to RSpec 3 #46

merged 7 commits into from
May 12, 2015

Conversation

eagletmt
Copy link
Member

No description provided.

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

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

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

* 10 conversions
    from: it { should ... }
      to: it { is_expected.to ... }

* 6 conversions
    from: be_false
      to: be_falsey

* 4 conversions
    from: be_true
      to: be_truthy

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

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

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

* 2 conversions
    from: =~ /pattern/
      to: match(/pattern/)

* 2 conversions
    from: Klass.any_instance.should_receive(:message)
      to: expect_any_instance_of(Klass).to receive(:message)

* 1 conversion
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

* 1 addition
      of: RSpec.configure { |c| c.infer_spec_type_from_file_location! }

For more details: https://github.com/yujinakayama/transpec#supported-conversions
Requiring `rspec/autorun` when running RSpec via the `rspec` command is
deprecated.
…alues

It is now set to true as default and setting it to false has no effect.
This conversion is done by Transpec 3.1.0 with the following command:
    transpec

* 1 conversion
    from: obj.stub(:message => value)
      to: allow(obj).to receive_messages(:message => value)

For more details: https://github.com/yujinakayama/transpec#supported-conversions
eagletmt added a commit that referenced this pull request May 12, 2015
@eagletmt eagletmt merged commit 3ff9bb9 into master May 12, 2015
@eagletmt eagletmt deleted the rspec3 branch May 12, 2015 13:11
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.

None yet

1 participant