Build on 2.0 #36

merged 3 commits into from Nov 11, 2013


None yet
1 participant

myronmarston commented Nov 11, 2013

This updates the rspec syntax with transpec and stops ignoring build failures on 2.0.

myronmarston added some commits Nov 11, 2013

@myronmarston myronmarston Convert specs to the latest RSpec syntax with Transpec
This conversion is done by Transpec 1.3.0 with the following command:
    transpec -m

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

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

* 10 conversions
    from: stub('something')
      to: double('something')

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

* 4 conversions
    from: obj.stub(:message => value)
      to: allow(obj).to receive(:message).and_return(value)

* 2 conversions
    from: Klass.any_instance.stub(:message)
      to: allow_any_instance_of(Klass).to receive(:message)

* 1 conversion
    from: expect(collection).to have_at_least(n).items
      to: expect(collection.size).to be >= n

* 1 conversion
    from: expect(obj).to have(n).endpoints
      to: expect(obj.endpoints.size).to eq(n)
@myronmarston myronmarston Don't allow 2.0 failures. 0f3bb38
@myronmarston myronmarston Allow cane to be installed on 2.0. b61d247

@myronmarston myronmarston added a commit that referenced this pull request Nov 11, 2013

@myronmarston myronmarston Merge pull request #36 from seomoz/build-on-2.0
Build on 2.0

@myronmarston myronmarston merged commit ebe6310 into master Nov 11, 2013

1 check passed

default The Travis CI build passed

myronmarston deleted the build-on-2.0 branch Nov 11, 2013

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