saucy 0.4.6 → 0.4.7

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 +1 @@
1
- <%= t(".body", :app_name => t("app_name")) %>
1
+ <%= t(".body", :app_name => t("app_name"), :new_project_url => new_account_project_url(@account)) %>
@@ -20,7 +20,10 @@ en:
20
20
  body: |-
21
21
  Hi,
22
22
 
23
- I noticed that you're trying out %{app_name}, but you haven't set up any projects yet.
23
+ I noticed that you started to try out %{app_name}, but you haven't set up any projects yet.
24
+
25
+ You can setup a new project by visiting
26
+ %{new_project_url}
24
27
 
25
28
  If you have any questions or need any help getting your %{app_name} account set up, feel free to respond to this email.
26
29
 
@@ -4,7 +4,7 @@ When /^I bootstrap the application for clearance$/ do
4
4
  And I successfully run "rails generate cucumber:install"
5
5
  And I successfully run "rails generate clearance"
6
6
  And I successfully run "rails generate clearance_features"
7
- And I configure ActionMailer to use "localhost" as a host
7
+ And I configure ActionMailer to use "www.example.com" as a host
8
8
  And I add flash messages to the layout
9
9
  And I add session links to the layout
10
10
  And I configure "clearance/sessions#new" as the root route
@@ -69,5 +69,5 @@ When /^I copy the specs for this project$/ do
69
69
  end
70
70
 
71
71
  Then /^at least one example should have run$/ do
72
- Then %{the output should match /[1-9]0? examples/}
72
+ Then %{the output should match /[1-9]0* examples/}
73
73
  end
@@ -54,6 +54,9 @@ DESC
54
54
  when /^the upgrade plan page for the "([^"]+)" account$/
55
55
  account = Account.find_by_name!($1)
56
56
  edit_account_plan_path(account)
57
+ when /^the new project page for the "([^"]+)" account$/
58
+ account = Account.find_by_name!($1)
59
+ new_account_project_path(account)
57
60
  PATHS
58
61
 
59
62
  replace_in_file "features/support/paths.rb",
@@ -64,11 +64,13 @@ Feature: Trial plans
64
64
  And I follow the link sent to "admin@example.com" with subject "Your trial is expiring soon"
65
65
  Then I should be on the upgrade plan page for the "Test" account
66
66
 
67
- Scenario: Receive a reminder about setting up an account
67
+ Scenario: Receive a reminder about activating an account
68
68
  Given an account exists with a name of "Test"
69
69
  And a user exists with an email of "admin@example.com"
70
70
  And "admin@example.com" is an admin of the "Test" account
71
71
  And the "Test" account was created 7 days ago
72
72
  When the daily Saucy jobs are processed
73
73
  Then an email with subject "A check in" should be sent to "admin@example.com"
74
-
74
+ When I sign in as "admin@example.com/password"
75
+ And I follow the link sent to "admin@example.com" with subject "A check in"
76
+ Then I should be on the new project page for the "Test" account
@@ -3,6 +3,7 @@ module Saucy
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
+ before_filter :authenticate
6
7
  before_filter :authorize_member, :only => :show
7
8
  before_filter :authorize_admin, :except => [:show]
8
9
  before_filter :ensure_active_account, :only => [:show, :destroy, :index]
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: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 6
10
- version: 0.4.6
9
+ - 7
10
+ version: 0.4.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.