spec/index/query_clause_spec.rb in ddr-models-2.4.12 vs spec/index/query_clause_spec.rb in ddr-models-2.4.13
- old
+ new
@@ -50,9 +50,19 @@
describe "when the value is an array with multiple entries" do
subject { described_class.where("foo", ["Jungle Fever", "bar"]) }
its(:to_s) { is_expected.to eq "{!lucene q.op=OR df=foo}\"Jungle Fever\" bar" }
end
end
+ describe ".join" do
+ subject {
+ described_class.join(from: :id, to: :collection_uri, where: { admin_set: "dvs"})
+ }
+ its(:to_s) { is_expected.to eq "{!join from=id to=collection_uri_ssim}admin_set_ssi:dvs" }
+ end
+ describe ".regexp" do
+ subject { described_class.regexp("foo", "foo/bar.*") }
+ its(:to_s) { is_expected.to eq "foo:/foo\\/bar.*/" }
+ end
end
end
end