Decouple generic injection spec from EnterpriseSerializer

This commit is contained in:
Rohan Mitchell
2015-06-03 12:53:46 +10:00
parent c6f6c11a43
commit b3878b126b

View File

@@ -4,7 +4,7 @@ describe InjectionHelper do
let!(:enterprise) { create(:distributor_enterprise, facebook: "roger") }
it "will inject via AMS" do
helper.inject_json_ams("test", [enterprise], Api::EnterpriseSerializer).should match enterprise.name
helper.inject_json_ams("test", [enterprise], Api::IdSerializer).should match /#{enterprise.id}/
end
it "injects enterprises" do