diff options
| author | Stormwind <stormwind@stormwinds-page.de> | 2013-01-10 19:37:03 +0100 | 
|---|---|---|
| committer | Stormwind <stormwind@stormwinds-page.de> | 2013-01-10 19:37:03 +0100 | 
| commit | 158dc45ba6c9016bc6ccebb00ec6bab943bc85e6 (patch) | |
| tree | 964caecd1f508c88d564392c92164950dd52285a | |
| parent | 4d6f5b0b193300440ba386a31153a484be082a16 (diff) | |
Kill the last mutant in Zero::Request:AcceptType
| -rw-r--r-- | spec/unit/zero/request/accepttype/preferred_spec.rb | 21 | 
1 files changed, 11 insertions, 10 deletions
| diff --git a/spec/unit/zero/request/accepttype/preferred_spec.rb b/spec/unit/zero/request/accepttype/preferred_spec.rb index ef21e8d..daeba86 100644 --- a/spec/unit/zero/request/accepttype/preferred_spec.rb +++ b/spec/unit/zero/request/accepttype/preferred_spec.rb @@ -14,16 +14,17 @@ describe Zero::Request::AcceptType, '#preferred' do    let(:lower_accept)   { [lower_quality, default].join(',') }    context 'without mapping' do -    it { subject.new(html).preferred.should           == html  } -    it { subject.new(json).preferred.should           == json  } -    it { subject.new(option).preferred.should         == foo   } -    it { subject.new(simple_accept).preferred.should  == html  } -    it { subject.new(quality_accept).preferred.should == html  } -    it { subject.new(random_accept).preferred.should  == html  } -    it { subject.new(lower_accept).preferred.should   == foo   } -    it { subject.new(nil).preferred.should            == '*/*' } -    it { subject.new('').preferred.should             == '*/*' } -    it { subject.new('text / html').preferred.should  == html  } +    it { subject.new(html).preferred.should                    == html  } +    it { subject.new(json).preferred.should                    == json  } +    it { subject.new(option).preferred.should                  == foo   } +    it { subject.new(simple_accept).preferred.should           == html  } +    it { subject.new(quality_accept).preferred.should          == html  } +    it { subject.new(random_accept).preferred.should           == html  } +    it { subject.new(lower_accept).preferred.should            == foo   } +    it { subject.new(nil).preferred.should                     == '*/*' } +    it { subject.new('').preferred.should                      == '*/*' } +    it { subject.new('text / html').preferred.should           == html  } +    it { subject.new("#{html};q=0.9,#{json}").preferred.should == json  }    end  #  context 'with mapping' do | 
