spec/language/negotiator_spec.rb in accept_headers-0.0.7 vs spec/language/negotiator_spec.rb in accept_headers-0.0.8

- old
+ new

@@ -71,12 +71,9 @@ describe "negotiate supported languages" do it "returns a best matching language" do match = language.new('en', 'us') n = subject.new('en-*, en-us, *;q=0.8') - n.negotiate('en-us').must_equal({ - supported: 'en-us', - matched: match - }) + n.negotiate('en-us').must_equal language.new('en', 'us') end end end