lib/restpack_service/support/matchers.rb in restpack_service-0.0.47 vs lib/restpack_service/support/matchers.rb in restpack_service-0.0.48
- old
+ new
@@ -38,10 +38,10 @@
let(:response) { subject.class.run(params) }
context "with valid params" do
context "when creating a single item" do
- let(:item) { build("#{type}_request".to_sym) }
+ let(:item) { build("api_#{type}".to_sym) }
let(:params) { { plural => [item] } }
it "returns the newly created #{type}" do
response.success?.should == true
response.result.should include(plural), "The reponse should include :#{plural} array"