Commit graph

6 commits

Author SHA1 Message Date
Fabio Rehm
2e2c2fad56 Convert specs to RSpec 2.99.0.beta2 syntax with Transpec
This conversion is done by Transpec 1.10.2 with the following command:
    transpec

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

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

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

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

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

* 5 conversions
    from: Klass.any_instance.stub(:message) { |arg| }
      to: Klass.any_instance.stub(:message) { |instance, arg| }

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

* 1 conversion
    from: lambda { }.should
      to: expect { }.to
2014-03-14 11:38:54 -03:00
Fabio Rehm
aef40d5b42 core: Fix tests to be rspec 3.0 compatible [GH-111] 2014-03-13 00:57:36 -03:00
Fabio Rehm
3909a26ea3 Move unit specs example group related code to spec/unit/support 2013-04-21 18:13:34 -03:00
Fabio Rehm
cd19ca4eda Improve simplecov result merging 2013-04-20 17:40:27 -03:00
Fabio Rehm
927c56c024 Safety net for running unit specs 2013-03-01 21:20:11 -03:00
Fabio Rehm
c54fbebfec Guard and rspec boilerplate 2013-02-28 00:06:29 -03:00