(maint) Use RSpec 2.9 expectations
We have RSpec 2.11 listed in the project Gemfile but CI is still using
2.9. This commit switches the expectation syntax to the older version
for compatibility.
Adrien Thebo authored 11 years ago
Josh Cooper committed 11 years ago
205 | 205 | end |
206 | 206 | end |
207 | 207 | |
208 | it "(#20236) is vmware when dmidecode contains vmware and lspci returns insufficient information", :focus => true do | |
208 | it "(#20236) is vmware when dmidecode contains vmware and lspci returns insufficient information" do | |
209 | 209 | Facter::Util::Resolution.stubs(:exec).with('lspci 2>/dev/null').returns("garbage\ninformation\n") |
210 | 210 | Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns("On Board Device 1 Information\nType: Video\nStatus: Disabled\nDescription: VMware SVGA II") |
211 | expect(Facter.fact(:virtual).value).to eq("vmware") | |
211 | Facter.fact(:virtual).value.should eq("vmware") | |
212 | 212 | end |
213 | 213 | end |
214 | 214 |