Convert specs to RSpec 2.99.2 syntax with Transpec
authorIgor Galić <i.galic@brainsware.org>
Mon, 29 Sep 2014 17:19:21 +0000 (19:19 +0200)
committerIgor Galić <i.galic@brainsware.org>
Mon, 29 Sep 2014 17:19:21 +0000 (19:19 +0200)
This conversion is done by Transpec 2.3.7 with the following command:
    transpec

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

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

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

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

* 2 conversions
    from: its(:attr) { }
      to: describe '#attr' do subject { super().attr }; it { } end

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

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

* 1 conversion
    from: be_false
      to: be_falsey

* 1 conversion
    from: be_true
      to: be_truthy

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


No differences found