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)
commit1df5570580c1d429a8fed25033a19333fcaffbda
tree32b1c5aba427f3162d20e94efd8922ff884296d4
parent38c9c20c5abb5a19917ee3af9e0b6f1f1e8a0b49
Convert specs to RSpec 2.99.2 syntax with Transpec

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
spec/acceptance/clone_repo_spec.rb
spec/acceptance/create_repo_spec.rb
spec/acceptance/remove_repo_spec.rb
spec/acceptance/remove_repo_spec_noop.rb
spec/unit/puppet/provider/vcsrepo/bzr_spec.rb
spec/unit/puppet/provider/vcsrepo/cvs_spec.rb
spec/unit/puppet/provider/vcsrepo/git_spec.rb
spec/unit/puppet/provider/vcsrepo/hg_spec.rb
spec/unit/puppet/provider/vcsrepo/svn_spec.rb