Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
update back-end tests
Dieser Commit ist enthalten in:
Ursprung
2c109c54f5
Commit
8407227f53
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren