diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2011-04-08 14:38:12 -0700 |
|---|---|---|
| committer | Matt Robinson <matt@puppetlabs.com> | 2011-04-08 14:38:12 -0700 |
| commit | 87f4e0a1ce60ddb443a5eda459793c5acb7fce1e (patch) | |
| tree | 6696b189164ef2114568b1ec3fb472512d3f2cd1 /spec/unit | |
| parent | 89327e9b956fd806418d548b25c458b9ebeac141 (diff) | |
| parent | d43f85063a0e40fdb5d02fb63d82639f2ca278f5 (diff) | |
Merge branch 'ticket/next/maint-fix_tests_for_old_rubies' into next
* ticket/next/maint-fix_tests_for_old_rubies:
maint: Ruby < 1.8.7 knows size but not count
maint: Get tests passing on Ruby < 1.8.7
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/application/inspect_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/application/inspect_spec.rb b/spec/unit/application/inspect_spec.rb index d334a87ee..a9a793117 100755 --- a/spec/unit/application/inspect_spec.rb +++ b/spec/unit/application/inspect_spec.rb @@ -246,9 +246,9 @@ describe Puppet::Application::Inspect do @inspect.run_command @report.status.should == "failed" - @report.logs.select{|log| log.message =~ /Could not inspect/}.count.should == 1 - @report.resource_statuses.count.should == 1 - @report.resource_statuses['Stub_type[foo]'].events.count.should == 1 + @report.logs.select{|log| log.message =~ /Could not inspect/}.size.should == 1 + @report.resource_statuses.size.should == 1 + @report.resource_statuses['Stub_type[foo]'].events.size.should == 1 event = @report.resource_statuses['Stub_type[foo]'].events.first event.property.should == "content" @@ -265,7 +265,7 @@ describe Puppet::Application::Inspect do @inspect.run_command - @report.resource_statuses.count.should == 2 + @report.resource_statuses.size.should == 2 @report.resource_statuses.keys.should =~ ['Stub_type[foo]', 'Stub_type[bar]'] end end |
