DEV: Fix tests after changes to controllers
This commit is contained in:
parent
9c46794e80
commit
d360a4155d
|
@ -48,6 +48,8 @@ module DiscourseSubscriptions
|
|||
|
||||
describe 'index' do
|
||||
it "gets the empty products" do
|
||||
SiteSetting.discourse_subscriptions_public_key = "public-key"
|
||||
SiteSetting.discourse_subscriptions_secret_key = "secret-key"
|
||||
get "/s/admin/products.json"
|
||||
expect(response.parsed_body).to be_empty
|
||||
end
|
||||
|
|
|
@ -35,6 +35,8 @@ module DiscourseSubscriptions
|
|||
|
||||
describe "index" do
|
||||
it "gets the subscriptions and products" do
|
||||
SiteSetting.discourse_subscriptions_public_key = "public-key"
|
||||
SiteSetting.discourse_subscriptions_secret_key = "secret-key"
|
||||
::Stripe::Subscription.expects(:list).with(expand: ['data.plan.product']).returns(
|
||||
[
|
||||
{ id: "sub_12345" },
|
||||
|
|
|
@ -19,6 +19,8 @@ module DiscourseSubscriptions
|
|||
|
||||
before do
|
||||
Fabricate(:product, external_id: "prodct_23456")
|
||||
SiteSetting.discourse_subscriptions_public_key = "public-key"
|
||||
SiteSetting.discourse_subscriptions_secret_key = "secret-key"
|
||||
end
|
||||
|
||||
context "unauthenticated" do
|
||||
|
|
Loading…
Reference in New Issue