Skip to content

Convert specs to RSpec expect syntax with transpec #1057

Merged
merged 1 commit into from Jul 18, 2014

3 participants

@loganhasson

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

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

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

  • 2 conversions
    from: expect(collection).to have(n).items
    to: expect(collection.size).to eq(n)

  • 1 conversion
    from: collection.should have(n).items
    to: expect(collection.size).to eq(n)

  • 1 conversion
    from: obj.should_not
    to: expect(obj).not_to

@loganhasson loganhasson Convert specs to RSpec 2.14.8 syntax with Transpec
This conversion is done by Transpec 1.13.1 with the following command:
    transpec

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

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

* 2 conversions
    from: expect(collection).to have(n).items
      to: expect(collection.size).to eq(n)

* 1 conversion
    from: collection.should have(n).items
      to: expect(collection.size).to eq(n)

* 1 conversion
    from: obj.should_not
      to: expect(obj).not_to
413edf0
@Kriechi
Kriechi commented Jun 1, 2014

:+1: for using the new expect-to syntax in rspec.
The travis build seems to be fine, only rubinius-related hiccup...

@leehambley leehambley merged commit 3e664b0 into capistrano:master Jul 18, 2014

1 check failed

Details continuous-integration/travis-ci The Travis CI build could not complete due to an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.