saucy 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,6 @@
1
1
  <%= t(".greeting") %>
2
2
 
3
- <%= t(".completed_trial_notice",
4
- :account_name => @account.name,
5
- :app_name => t("app_name")) %>
3
+ <%= t(".notice", :account_name => @account.name, :app_name => t("app_name")) %>
6
4
 
7
5
  <%= edit_account_plan_url(@account) %>
8
6
 
@@ -18,7 +18,7 @@ en:
18
18
  contact: "If you need more time to evaluate %{app_name} or you have any questions, please don't hesitate to contact me."
19
19
  completed_trial:
20
20
  greeting: Thanks for giving us a try!
21
- expiration_notice: "Your 30 day trial for %{account_name} is over, and your account has become inactive. If you'd like to continue using your account, please take a moment to choose a paid plan:"
21
+ notice: "Your 30 day trial for %{account_name} is over, and your account has become inactive. If you'd like to continue using your account, please take a moment to choose a paid plan:"
22
22
  contact: "If you need more time to evaluate %{app_name} or you have any questions, please don't hesitate to contact me."
23
23
  new_unactivated:
24
24
  body: |-
@@ -55,4 +55,14 @@ describe "with an account and transaction" do
55
55
  subject.reply_to.should == [Saucy::Configuration.support_email_address]
56
56
  end
57
57
  end
58
+
59
+ describe BillingMailer, "completed trial" do
60
+ subject { BillingMailer.completed_trial(account) }
61
+
62
+ it "uses the completed trial notice" do
63
+ notice = I18n.translate!("billing_mailer.completed_trial.notice",
64
+ :account_name => account.name)
65
+ subject.body.should include(notice)
66
+ end
67
+ end
58
68
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.