spec/lib/pact/reification_spec.rb in pact-support-0.0.1 vs spec/lib/pact/reification_spec.rb in pact-support-0.0.2
- old
+ new
@@ -61,7 +61,19 @@
expect(subject).to eq({a: 'String'})
end
end
+ context "when Query" do
+
+ let(:query) { QueryString.new(Pact::Term.new(generate: "param=thing", matcher: /param=.*/)) }
+
+ subject { Reification.from_term(query)}
+
+ it "returns the contents of the generate" do
+ expect(subject).to eq("param=thing")
+ end
+
+ end
+
end
end