Skip to content

Commit

Permalink
Use proper array matcher to make ruby 1.8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterLambaster committed Aug 13, 2013
1 parent 72cb90d commit dc86c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/core/formatters/json_formatter_spec.rb
Expand Up @@ -136,7 +136,7 @@

it "have summary" do
formatter.dump_profile_slowest_examples
expect(formatter.output_hash[:profile].keys).to eq([:examples, :slowest, :total])
expect(formatter.output_hash[:profile].keys).to match_array([:examples, :slowest, :total])
end
end

Expand Down Expand Up @@ -182,7 +182,7 @@

it "provides information" do
formatter.dump_profile_slowest_example_groups
expect(formatter.output_hash[:profile][:groups].first.keys).to eq([:total_time, :count, :description, :average, :location])
expect(formatter.output_hash[:profile][:groups].first.keys).to match_array([:total_time, :count, :description, :average, :location])
end

it "ranks the example groups by average time" do
Expand Down

0 comments on commit dc86c09

Please sign in to comment.