spec/endeca/document_spec.rb in primedia-endeca-0.9.20 vs spec/endeca/document_spec.rb in primedia-endeca-0.9.21

- old
+ new

@@ -251,14 +251,17 @@ end describe "with multiple keys that are joined" do it "should include all the keys" do require 'pp' - Endeca::Document.map(:apartments => :showapartments).into('Ntt' => 'Ntk') - Endeca::Document.map(:colleges => :showcolleges).into('Ntt' => 'Ntk') + Endeca::Document.map(:apartments => :showapartments).into('Ntk' => 'Ntt') + Endeca::Document.map(:colleges => :showcolleges).into('Ntk' => 'Ntt') + ntk = Endeca::Document.transform_query_options('apartments' => '1', 'colleges' => '2')[:Ntk] + ntk.should include('showapartments') + ntk.should include('showcolleges') ntt = Endeca::Document.transform_query_options('apartments' => '1', 'colleges' => '2')[:Ntt] - ntt.should include('showapartments') - ntt.should include('showcolleges') + ntt.should include('1') + ntt.should include('2') end end describe "when there is no mapping for the given key" do it "returns the query options without modification" do