spec/models/indexing_spec.rb in ddr-models-2.8.0 vs spec/models/indexing_spec.rb in ddr-models-2.9.0.rc1
- old
+ new
@@ -153,7 +153,15 @@
expect(subject.index_fields[Indexing::LANGUAGE_FACET]).to eq ["Welsh", "Not a Code"]
expect(subject.index_fields[Indexing::LANGUAGE_NAME]).to eq ["Welsh", "Not a Code"]
}
end
+ describe "nested path" do
+ subject { FactoryGirl.build(:item) }
+ before { subject.nested_path = "/foo/bar/baz" }
+ specify {
+ expect(subject.index_fields[Indexing::NESTED_PATH]).to eq "/foo/bar/baz"
+ expect(subject.index_fields[Indexing::NESTED_PATH_TEXT]).to eq "/foo/bar/baz"
+ }
+ end
end
end