Commit bb2563b8 authored by John E. Vincent's avatar John E. Vincent

fixing an MRI 1.8 incompat in specs

parent ae0d4092
......@@ -59,15 +59,16 @@ describe "Using the Link Model", :reset_redis => true do
h[:updated_at].should == l.updated_at
h[:created_at].should == l.created_at
h[:hosts].has_key?(@host.name).should == true
h[:hosts][@host.name].keys.sort.should == [:id, :status, :tags, :services].sort
h[:hosts][@host.name].keys.map {|k| k.to_s}.sort.should == [:id, :status, :tags, :services].map {|k| k.to_s}.sort
h[:services].has_key?(@service.name).should == true
h[:services][@service.name][@host.name].keys.sort.should == [:id, :status, :tags].sort
h[:services][@service.name][@host.name].keys.map {|k| k.to_s}.sort.should == [:id, :status, :tags].map {|k| k.to_s}.sort
h[:applications].has_key?(@application.name).should == true
h[:applications][@application.name].keys.sort.should == [:id, :tags, :configurations].sort
h[:applications][@application.name].keys.map {|k| k.to_s}.sort.should == [:id, :tags, :configurations].map {|k| k.to_s}.sort
h[:configurations].has_key?(@configuration.name).should == true
h[:configurations][@configuration.name].keys.sort.should == [:id, :tags, :format, :body].sort
h[:configurations][@configuration.name].keys.map {|k| k.to_s }.sort.should == [:id, :tags, :format, :body].map {|k| k.to_s}.sort
h[:ephemerals].has_key?(@ephemeral.name).should == true
h[:ephemerals][@ephemeral.name].keys.sort.should == [:id, :tags, :path, :data].sort
h[:ephemerals][@ephemeral.name].keys.map {|k| k.to_s}.sort.should == [:id, :tags, :path, :data].map {|k| k.to_s}.sort
end
end
describe "should not" do
......@@ -84,5 +85,3 @@ describe "Using the Link Model", :reset_redis => true do
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment