rubocop && fix i18n
This commit is contained in:
parent
3dfa261c19
commit
86c77a7395
|
@ -17,6 +17,8 @@ const Plan = Discourse.Model.extend({
|
|||
subscriptionRate(amountDollars, currency, interval) {
|
||||
return `$${amountDollars} ${currency.toUpperCase()} / ${interval}`;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
Plan.reopenClass({
|
||||
|
|
|
@ -36,6 +36,7 @@ en:
|
|||
operations:
|
||||
destroy:
|
||||
confirm: Are you sure you want to cancel this subscription?
|
||||
subscribe:
|
||||
title: Subscribe
|
||||
card:
|
||||
title: Payment
|
||||
|
|
|
@ -22,9 +22,9 @@ module DiscoursePatrons
|
|||
get "/patrons/plans.json"
|
||||
|
||||
expect(JSON.parse(response.body)).to eq([
|
||||
{ "amount" => 1000, "currency" => "aud", "id" => "plan_id678", "interval"=>"week" },
|
||||
{ "amount" => 1220, "currency" => "aud", "id" => "plan_id123", "interval"=>"year" },
|
||||
{ "amount" => 1399, "currency" => "usd", "id" => "plan_id234", "interval"=>"year" }
|
||||
{ "amount" => 1000, "currency" => "aud", "id" => "plan_id678", "interval" => "week" },
|
||||
{ "amount" => 1220, "currency" => "aud", "id" => "plan_id123", "interval" => "year" },
|
||||
{ "amount" => 1399, "currency" => "usd", "id" => "plan_id234", "interval" => "year" }
|
||||
])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue