1
0
Fork 0

update back-end tests

Dieser Commit ist enthalten in:
merefield 2023-09-24 17:18:40 +01:00
Ursprung 2c109c54f5
Commit 8407227f53

Datei anzeigen

@ -20,7 +20,7 @@ describe CustomWizard::AdminController do
end end
it "returns the right subscription details" do it "returns the right subscription details" do
get "/admin/wizards.json" get "/admin/wizards/subscription.json"
expect(response.parsed_body["subscribed"]).to eq(false) expect(response.parsed_body["subscribed"]).to eq(false)
expect(response.parsed_body["subscription_attributes"]).to eq(CustomWizard::Subscription.attributes.as_json) expect(response.parsed_body["subscription_attributes"]).to eq(CustomWizard::Subscription.attributes.as_json)
end end
@ -33,7 +33,7 @@ describe CustomWizard::AdminController do
end end
it "returns the right subscription details" do it "returns the right subscription details" do
get "/admin/wizards.json" get "/admin/wizards/subscription.json"
expect(response.parsed_body["subscribed"]).to eq(true) expect(response.parsed_body["subscribed"]).to eq(true)
expect(response.parsed_body["subscription_type"]).to eq("standard") expect(response.parsed_body["subscription_type"]).to eq("standard")
end end