summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2014-10-21 12:12:17 -0700
committerAaron Stone <aaron@serendipity.cx>2014-10-21 12:12:17 -0700
commit6cef9491e5cfdab75d97597592e345a777020376 (patch)
tree981c804b87bcb900135592a6c3d37f50d43745fb /spec/unit/puppet/provider/vcsrepo/hg_spec.rb
parente467921ee8806ac9cd15381d75e0129847125d31 (diff)
parent1df5570580c1d429a8fed25033a19333fcaffbda (diff)
downloadpuppet-vcsrepo-6cef9491e5cfdab75d97597592e345a777020376.tar.gz
puppet-vcsrepo-6cef9491e5cfdab75d97597592e345a777020376.tar.bz2
Merge pull request #210 from igalic/transpec
Convert specs to RSpec 2.99.2 syntax with Transpec
Diffstat (limited to 'spec/unit/puppet/provider/vcsrepo/hg_spec.rb')
-rw-r--r--spec/unit/puppet/provider/vcsrepo/hg_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/puppet/provider/vcsrepo/hg_spec.rb b/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
index 6b21c1c..65d820d 100644
--- a/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
+++ b/spec/unit/puppet/provider/vcsrepo/hg_spec.rb
@@ -88,14 +88,14 @@ describe Puppet::Type.type(:vcsrepo).provider(:hg) do
context "when its SHA is not different than the current SHA" do
it "should return the ref" do
resource[:revision] = '0.6'
- provider.revision.should == '0.6'
+ expect(provider.revision).to eq('0.6')
end
end
context "when its SHA is different than the current SHA" do
it "should return the current SHA" do
resource[:revision] = '0.5.3'
- provider.revision.should == '34e6012c783a'
+ expect(provider.revision).to eq('34e6012c783a')
end
end
end
@@ -108,7 +108,7 @@ describe Puppet::Type.type(:vcsrepo).provider(:hg) do
it "should return it" do
resource[:revision] = '34e6012c783a'
provider.expects(:hg).with('tags').returns(fixture(:hg_tags))
- provider.revision.should == resource.value(:revision)
+ expect(provider.revision).to eq(resource.value(:revision))
end
end
@@ -116,7 +116,7 @@ describe Puppet::Type.type(:vcsrepo).provider(:hg) do
it "should return the current SHA" do
resource[:revision] = 'not-the-same'
provider.expects(:hg).with('tags').returns(fixture(:hg_tags))
- provider.revision.should == '34e6012c783a'
+ expect(provider.revision).to eq('34e6012c783a')
end
end
end