rubocop && fix i18n

This commit is contained in:
Rimian Perkins 2019-11-01 10:50:34 +11:00
parent 3dfa261c19
commit 86c77a7395
3 changed files with 6 additions and 3 deletions

View File

@ -17,6 +17,8 @@ const Plan = Discourse.Model.extend({
subscriptionRate(amountDollars, currency, interval) {
return `$${amountDollars} ${currency.toUpperCase()} / ${interval}`;
}
});
Plan.reopenClass({

View File

@ -36,6 +36,7 @@ en:
operations:
destroy:
confirm: Are you sure you want to cancel this subscription?
subscribe:
title: Subscribe
card:
title: Payment

View File

@ -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