lib/restpack_service/support/matchers.rb in restpack_service-0.0.48 vs lib/restpack_service/support/matchers.rb in restpack_service-0.0.49

- old
+ new

@@ -55,11 +55,11 @@ response_item.should == serializer_class.as_json(model) end end context "when creating multiple items" do - let(:item1) { build("#{type}_request".to_sym) } - let(:item2) { build("#{type}_request".to_sym) } + let(:item1) { build("api_#{type}".to_sym) } + let(:item2) { build("api_#{type}".to_sym) } let(:params) { { plural => [item1, item2] } } it "returns the newly created #{type}s" do response.success?.should == true response.result.should include(plural), "The reponse should include :#{plural} array"