YaleSTC/reservations — pull request #863 by squidgetx (2014-07-31 19:39:30+00:00)
Title: Convert specs to RSpec 3.0.3 syntax with Transpec

This conversion is done by Transpec 2.3.6 with the following command:
transpec -f

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

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

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

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

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

* 42 conversions
from: it { should_not ... }
to: it { is_expected.not_to ... }

* 15 conversions
from: describe 'some controller' { }
to: describe 'some controller', :type => :controller { }

* 13 conversions
from: describe 'some model' { }
to: describe 'some model', :type => :model { }

* 8 conversions
from: obj.unstub(:message)
to: allow(obj).to receive(:message).and_call_original

* 2 conversions
from: describe 'some helper' { }
to: describe 'some helper', :type => :helper { }

* 2 conversions
from: describe 'some mailer' { }
to: describe 'some mailer', :type => :mailer { }

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

* 1 conversion
from: describe 'some request' { }
to: describe 'some request', :type => :request { }

For more details: https://github.com/yujinakayama/transpec#supported-conversions