mtdevise 3.5.5 → 3.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +3 -2
- data/Rakefile +13 -11
- data/app/assets/config/mtdevise_manifest.js +2 -0
- data/app/assets/javascripts/mtdevise/application.js +3 -4
- data/app/{constraints → assets}/mtdevise/constraints/subdomain_required.rb +0 -0
- data/app/assets/stylesheets/mtdevise/_custom.scss +3 -0
- data/app/assets/stylesheets/mtdevise/application.scss +19 -3
- data/app/controllers/mtdevise/application_controller.rb +5 -6
- data/app/controllers/mtdevise/welcome_controller.rb +1 -1
- data/app/jobs/mtdevise/application_job.rb +4 -0
- data/app/mailers/mtdevise/application_mailer.rb +6 -0
- data/app/models/mtdevise/application_record.rb +5 -0
- data/config/initializers/devise/strategies/subdomain.rb +1 -1
- data/config/routes.rb +1 -1
- data/db/migrate/20150426071228_create_mtdevise_accounts.rb +1 -1
- data/db/migrate/20150426115631_add_owner_id_to_mtdevise_accounts.rb +1 -1
- data/db/migrate/20150426115910_create_mtdevise_users.rb +1 -1
- data/db/migrate/20150426143800_add_devise_to_mtdevise_users.rb +1 -1
- data/db/migrate/20150427200506_add_subdomain_to_mtdevise_accounts.rb +1 -1
- data/db/migrate/20150428110406_create_mtdevise_members.rb +1 -1
- data/db/migrate/20150504181830_add_confirmed_at_to_users.rb +1 -1
- data/db/migrate/20150719125100_add_authentication_token_to_mtdevise_users.rb +1 -1
- data/db/migrate/20151231043439_add_firstname_to_mtdevise_accounts.rb +1 -1
- data/lib/mtdevise.rb +1 -0
- data/lib/mtdevise/version.rb +1 -1
- data/lib/tasks/mtdevise_tasks.rake +1 -1
- metadata +109 -296
- data/LICENSE +0 -238
- data/app/assets/javascripts/mtdevise/account/dashboard.js +0 -2
- data/app/assets/javascripts/mtdevise/account/sessions.js +0 -2
- data/app/assets/javascripts/mtdevise/account/users.js +0 -2
- data/app/assets/javascripts/mtdevise/accounts.js +0 -2
- data/app/assets/javascripts/mtdevise/dashboard.js +0 -2
- data/app/assets/javascripts/mtdevise/welcome.js +0 -2
- data/app/assets/stylesheets/mtdevise/account/dashboard.css +0 -4
- data/app/assets/stylesheets/mtdevise/account/sessions.css +0 -4
- data/app/assets/stylesheets/mtdevise/account/users.css +0 -4
- data/app/assets/stylesheets/mtdevise/accounts.css +0 -4
- data/app/assets/stylesheets/mtdevise/dashboard.css +0 -4
- data/app/assets/stylesheets/mtdevise/jumbotron-narrow.css +0 -65
- data/app/assets/stylesheets/mtdevise/non-responsive.css +0 -30
- data/app/assets/stylesheets/mtdevise/welcome.css +0 -4
- data/app/helpers/mtdevise/account/dashboard_helper.rb +0 -4
- data/app/helpers/mtdevise/account/sessions_helper.rb +0 -4
- data/app/helpers/mtdevise/account/users_helper.rb +0 -4
- data/app/helpers/mtdevise/accounts_helper.rb +0 -4
- data/app/helpers/mtdevise/dashboard_helper.rb +0 -4
- data/app/helpers/mtdevise/welcome_helper.rb +0 -4
- data/spec/controllers/mtdevise/accounts_controller_spec.rb +0 -30
- data/spec/features/accounts/create_spec.rb +0 -51
- data/spec/features/accounts/index_spec.rb +0 -22
- data/spec/features/accounts/scoping_spec.rb +0 -24
- data/spec/features/accounts/sign_in_spec.rb +0 -21
- data/spec/features/accounts/sign_up_spec.rb +0 -104
- data/spec/features/root_spec.rb +0 -29
- data/spec/features/users/invite_spec.rb +0 -4
- data/spec/features/users/sign_in_spec.rb +0 -52
- data/spec/features/users/sign_up_spec.rb +0 -21
- data/spec/helpers/mtdevise/account/dashboard_helper_spec.rb +0 -17
- data/spec/helpers/mtdevise/account/sessions_helper_spec.rb +0 -17
- data/spec/helpers/mtdevise/account/users_helper_spec.rb +0 -17
- data/spec/helpers/mtdevise/accounts_helper_spec.rb +0 -17
- data/spec/helpers/mtdevise/dashboard_helper_spec.rb +0 -17
- data/spec/helpers/mtdevise/welcome_helper_spec.rb +0 -17
- data/spec/models/mtdevise/account_spec.rb +0 -24
- data/spec/models/mtdevise/user_spec.rb +0 -12
- data/spec/rails_helper.rb +0 -58
- data/spec/spec_helper.rb +0 -75
- data/spec/support/authentication_helpers.rb +0 -3
- data/spec/support/factories/account_factory.rb +0 -13
- data/spec/support/factories/user_factory.rb +0 -8
- data/spec/support/feature_helpers.rb +0 -25
- data/spec/support/subdomain_helpers.rb +0 -8
- data/spec/test_app/README.rdoc +0 -28
- data/spec/test_app/Rakefile +0 -4
- data/spec/test_app/app/assets/javascripts/application.js +0 -15
- data/spec/test_app/app/assets/javascripts/things.js +0 -2
- data/spec/test_app/app/assets/stylesheets/application.css +0 -15
- data/spec/test_app/app/assets/stylesheets/things.css +0 -4
- data/spec/test_app/app/controllers/application_controller.rb +0 -5
- data/spec/test_app/app/controllers/things_controller.rb +0 -5
- data/spec/test_app/app/helpers/application_helper.rb +0 -2
- data/spec/test_app/app/helpers/things_helper.rb +0 -2
- data/spec/test_app/app/models/thing.rb +0 -3
- data/spec/test_app/app/models/user.rb +0 -3
- data/spec/test_app/app/views/layouts/application.html.erb +0 -12
- data/spec/test_app/app/views/things/index.html.erb +0 -6
- data/spec/test_app/bin/bundle +0 -3
- data/spec/test_app/bin/rails +0 -4
- data/spec/test_app/bin/rake +0 -4
- data/spec/test_app/config.ru +0 -4
- data/spec/test_app/config/application.rb +0 -28
- data/spec/test_app/config/boot.rb +0 -5
- data/spec/test_app/config/database.circle.yml +0 -4
- data/spec/test_app/config/database.yml +0 -17
- data/spec/test_app/config/environment.rb +0 -5
- data/spec/test_app/config/environments/development.rb +0 -39
- data/spec/test_app/config/environments/production.rb +0 -84
- data/spec/test_app/config/environments/test.rb +0 -41
- data/spec/test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/test_app/config/initializers/cookies_serializer.rb +0 -2
- data/spec/test_app/config/initializers/filter_parameter_logging.rb +0 -3
- data/spec/test_app/config/initializers/inflections.rb +0 -16
- data/spec/test_app/config/initializers/mime_types.rb +0 -4
- data/spec/test_app/config/initializers/session_store.rb +0 -4
- data/spec/test_app/config/initializers/wrap_parameters.rb +0 -14
- data/spec/test_app/config/locales/en.yml +0 -23
- data/spec/test_app/config/routes.rb +0 -6
- data/spec/test_app/config/secrets.yml +0 -22
- data/spec/test_app/db/migrate/20140428155742_create_things.rb +0 -10
- data/spec/test_app/db/schema.rb +0 -68
- data/spec/test_app/public/404.html +0 -67
- data/spec/test_app/public/422.html +0 -67
- data/spec/test_app/public/500.html +0 -66
- data/spec/test_app/public/favicon.ico +0 -0
- data/spec/test_app/spec/controllers/things_controller_spec.rb +0 -3
- data/spec/test_app/spec/helpers/things_helper_spec.rb +0 -14
- data/spec/test_app/spec/models/thing_spec.rb +0 -4
- data/spec/test_app/spec/views/things/index.html.erb_spec.rb +0 -4
@@ -1,51 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
feature 'Accounts creation' do
|
4
|
-
|
5
|
-
before(:each) do
|
6
|
-
@account = create :account
|
7
|
-
sign_in @account.owner, attributes_for(:user)[:password]
|
8
|
-
click_on 'Create a New Account'
|
9
|
-
expect(page).to have_text 'Create Account'
|
10
|
-
end
|
11
|
-
scenario 'creating an account' do
|
12
|
-
fill_in 'Account Name', :with => 'Test'
|
13
|
-
fill_in "Subdomain", :with => "test"
|
14
|
-
fill_in 'First Name', :with => 'Test'
|
15
|
-
fill_in 'Last Name', :with => 'Test'
|
16
|
-
fill_in 'User Name', :with => 'Test'
|
17
|
-
click_button 'Create Account'
|
18
|
-
expect(page).to have_text('Your account has been successfully created.')
|
19
|
-
end
|
20
|
-
scenario "Ensure subdomain uniqueness" do
|
21
|
-
fill_in 'Account Name', :with => 'Test'
|
22
|
-
fill_in 'First Name', :with => 'Test'
|
23
|
-
fill_in 'Last Name', :with => 'Test'
|
24
|
-
fill_in 'User Name', :with => 'Test'
|
25
|
-
fill_in "Subdomain", :with => @account.subdomain
|
26
|
-
click_button 'Create Account'
|
27
|
-
expect(page).to have_text("Sorry, your account could not be created.")
|
28
|
-
expect(page).to have_text("has already been taken")
|
29
|
-
end
|
30
|
-
scenario "Subdomain with restricted name" do
|
31
|
-
fill_in 'Account Name', :with => 'Test'
|
32
|
-
fill_in 'First Name', :with => 'Test'
|
33
|
-
fill_in 'Last Name', :with => 'Test'
|
34
|
-
fill_in 'User Name', :with => 'Test'
|
35
|
-
fill_in "Subdomain", :with => "admin"
|
36
|
-
click_button 'Create Account'
|
37
|
-
expect(page).to have_text("Sorry, your account could not be created.")
|
38
|
-
expect(page).to have_text("is not allowed. Please choose another subdomain.")
|
39
|
-
end
|
40
|
-
scenario "Subdomain with invalid name" do
|
41
|
-
fill_in 'Account Name', :with => 'Test'
|
42
|
-
fill_in 'First Name', :with => 'Test'
|
43
|
-
fill_in 'Last Name', :with => 'Test'
|
44
|
-
fill_in 'User Name', :with => 'Test'
|
45
|
-
fill_in "Subdomain", :with => "<admin>"
|
46
|
-
click_button 'Create Account'
|
47
|
-
expect(page).to have_text("Sorry, your account could not be created.")
|
48
|
-
expect(page).to have_text("is not allowed. Please choose another subdomain.")
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
feature 'Accounts index' do
|
4
|
-
|
5
|
-
context 'logged in users' do
|
6
|
-
scenario 'after sign in it should redirect to accounts page' do
|
7
|
-
account = create :account
|
8
|
-
sign_in account.owner, attributes_for(:user)[:password]
|
9
|
-
expect(page.current_url).to match(/#{mtdevise.accounts_path}/)
|
10
|
-
expect(page).to have_text(account.name)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
context 'guests users' do
|
15
|
-
scenario 'should not let them in' do
|
16
|
-
visit mtdevise.accounts_path
|
17
|
-
expect(page.current_url).to match(/#{mtdevise.new_user_session_path}/)
|
18
|
-
expect(page).to have_text('You need to sign in or sign up before continuing')
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
feature "Account scoping" do
|
3
|
-
let!(:account_a) { FactoryGirl.create(:account) }
|
4
|
-
let!(:account_b) { FactoryGirl.create(:account) }
|
5
|
-
|
6
|
-
before do
|
7
|
-
Thing.scoped_to(account_a).create(:name => "Account A's Thing")
|
8
|
-
Thing.scoped_to(account_b).create(:name => "Account B's Thing")
|
9
|
-
end
|
10
|
-
|
11
|
-
scenario "displays only account A's records" do
|
12
|
-
sign_in(account_a.owner, attributes_for(:user)[:password])
|
13
|
-
visit main_app.things_url(:subdomain => account_a.subdomain)
|
14
|
-
expect(page).to have_content("Account A's Thing")
|
15
|
-
expect(page).to_not have_content("Account B's Thing")
|
16
|
-
end
|
17
|
-
|
18
|
-
scenario "displays only account B's records" do
|
19
|
-
sign_in(account_b.owner, attributes_for(:user)[:password])
|
20
|
-
visit main_app.things_url(:subdomain => account_b.subdomain)
|
21
|
-
expect(page).to have_content("Account B's Thing")
|
22
|
-
expect(page).to_not have_content("Account A's Thing")
|
23
|
-
end
|
24
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
feature 'Sign In' do
|
4
|
-
|
5
|
-
context 'valid in users' do
|
6
|
-
scenario 'after sign in it should redirect to accounts page' do
|
7
|
-
account = create :account
|
8
|
-
sign_in account.owner, attributes_for(:user)[:password]
|
9
|
-
expect(page.current_url).to match(/#{mtdevise.accounts_path}/)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
context 'invalid users' do
|
13
|
-
scenario 'should not let them in' do
|
14
|
-
account = create :account
|
15
|
-
sign_in account.owner, 'invalid pwd'
|
16
|
-
expect(page).to have_text('Invalid')
|
17
|
-
expect(page).not_to have_text(account.name)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
@@ -1,104 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
feature 'Accounts' do
|
4
|
-
|
5
|
-
context 'signed in users' do
|
6
|
-
scenario 'should redirect to accounts page' do
|
7
|
-
sign_in
|
8
|
-
visit mtdevise.sign_up_path
|
9
|
-
expect(page.current_url).to match(/#{mtdevise.accounts_path}/)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
context 'signed out users' do
|
14
|
-
scenario 'creating an account' do
|
15
|
-
visit mtdevise.root_path
|
16
|
-
click_link 'Sign Up Today'
|
17
|
-
fill_in 'Account Name', :with => 'Test'
|
18
|
-
fill_in 'First Name', :with => 'Test'
|
19
|
-
fill_in 'Last Name', :with => 'Test'
|
20
|
-
fill_in 'User Name', :with => 'Test'
|
21
|
-
fill_in "Subdomain", :with => "test"
|
22
|
-
fill_in 'Email', :with => 'mtdevise@example.com'
|
23
|
-
fill_in 'Password', :with => 'password', :exact => true
|
24
|
-
fill_in 'Confirm Password', :with => 'password'
|
25
|
-
click_button 'Create Account'
|
26
|
-
success_message = 'Your account has been successfully created.'
|
27
|
-
expect(page).to have_content(success_message)
|
28
|
-
expect(page).to have_content('Signed in as mtdevise@example.com')
|
29
|
-
expect(page.current_url).to eq("http://test.example.com/")
|
30
|
-
end
|
31
|
-
|
32
|
-
scenario "Ensure email uniqueness" do
|
33
|
-
account = create :account
|
34
|
-
owner = account.owner
|
35
|
-
visit mtdevise.root_path
|
36
|
-
click_link "Sign Up Today"
|
37
|
-
fill_in "Account Name", :with => "another name"
|
38
|
-
fill_in 'First Name', :with => 'Test'
|
39
|
-
fill_in 'Last Name', :with => 'Test'
|
40
|
-
fill_in 'User Name', :with => 'Test'
|
41
|
-
fill_in "Subdomain", :with => "anothersubdomain"
|
42
|
-
fill_in "Email", :with => owner.email
|
43
|
-
fill_in "Password", :with => "password", :exact => true
|
44
|
-
fill_in "Confirm Password", :with => 'password'
|
45
|
-
click_button "Create Account"
|
46
|
-
expect(page.current_url).to eq("http://example.com/accounts")
|
47
|
-
expect(page).to have_content("Sorry, your account could not be created.")
|
48
|
-
expect(page).to have_content("has already been taken")
|
49
|
-
end
|
50
|
-
|
51
|
-
scenario "Ensure subdomain uniqueness" do
|
52
|
-
Mtdevise::Account.create!(:subdomain => "test", :name => "Test", :firstname => "Test", :lastname => "Test", :username => "test")
|
53
|
-
visit mtdevise.root_path
|
54
|
-
click_link "Sign Up Today"
|
55
|
-
fill_in "Account Name", :with => "Test"
|
56
|
-
fill_in "Subdomain", :with => "test"
|
57
|
-
fill_in 'First Name', :with => 'Test'
|
58
|
-
fill_in 'Last Name', :with => 'Test'
|
59
|
-
fill_in 'User Name', :with => 'Test'
|
60
|
-
fill_in "Email", :with => "mtdevise@example.com"
|
61
|
-
fill_in "Password", :with => "password", :exact => true
|
62
|
-
fill_in "Confirm Password", :with => 'password'
|
63
|
-
click_button "Create Account"
|
64
|
-
expect(page.current_url).to eq( "http://example.com/accounts")
|
65
|
-
expect(page).to have_content("Sorry, your account could not be created.")
|
66
|
-
expect(page).to have_content("has already been taken")
|
67
|
-
end
|
68
|
-
|
69
|
-
scenario "Subdomain with restricted name" do
|
70
|
-
visit mtdevise.root_path
|
71
|
-
click_link "Sign Up Today"
|
72
|
-
fill_in "Account Name", :with => "Test"
|
73
|
-
fill_in 'First Name', :with => 'Test'
|
74
|
-
fill_in 'Last Name', :with => 'Test'
|
75
|
-
fill_in 'User Name', :with => 'Test'
|
76
|
-
fill_in "Subdomain", :with => "admin"
|
77
|
-
fill_in "Email", :with => "mtdevise@example.com"
|
78
|
-
fill_in "Password", :with => "password"
|
79
|
-
fill_in "Confirm Password", :with => "password"
|
80
|
-
click_button "Create Account"
|
81
|
-
expect(page.current_url).to eq("http://example.com/accounts")
|
82
|
-
expect(page).to have_content("Sorry, your account could not be created.")
|
83
|
-
expect(page).to have_content("is not allowed. Please choose another subdomain.")
|
84
|
-
end
|
85
|
-
|
86
|
-
scenario "Subdomain with invalid name" do
|
87
|
-
visit mtdevise.root_path
|
88
|
-
click_link "Sign Up Today"
|
89
|
-
fill_in "Account Name", :with => "Test"
|
90
|
-
fill_in 'First Name', :with => 'Test'
|
91
|
-
fill_in 'Last Name', :with => 'Test'
|
92
|
-
fill_in 'User Name', :with => 'Test'
|
93
|
-
fill_in "Subdomain", :with => "<admin>"
|
94
|
-
fill_in "Email", :with => "mtdevise@example.com"
|
95
|
-
fill_in "Password", :with => "password"
|
96
|
-
fill_in "Confirm Password", :with => "password"
|
97
|
-
click_button "Create Account"
|
98
|
-
expect(page.current_url).to eq("http://example.com/accounts")
|
99
|
-
expect(page).to have_content("Sorry, your account could not be created.")
|
100
|
-
expect(page).to have_content("is not allowed. Please choose another subdomain.")
|
101
|
-
end
|
102
|
-
|
103
|
-
end
|
104
|
-
end
|
data/spec/features/root_spec.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
feature 'Root page' do
|
4
|
-
|
5
|
-
context 'signed in users' do
|
6
|
-
scenario 'Should redirect to the accounts page' do
|
7
|
-
sign_in
|
8
|
-
visit mtdevise.root_path
|
9
|
-
expect(page.current_url).to match(/#{mtdevise.accounts_path}/)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
context 'guest users' do
|
14
|
-
scenario 'Should have sign up link' do
|
15
|
-
visit mtdevise.root_path
|
16
|
-
click_link 'Sign Up Today'
|
17
|
-
end
|
18
|
-
scenario 'Should have login link' do
|
19
|
-
visit mtdevise.root_path
|
20
|
-
click_link 'Sign In To Manage Your Accounts'
|
21
|
-
end
|
22
|
-
scenario 'visit non-existing subdomain' do
|
23
|
-
visit mtdevise.root_url(subdomain: 'nonexisting')
|
24
|
-
expect(page.current_url).to match(/#{mtdevise.root_path}/)
|
25
|
-
expect(page).to have_content("Subdomain Doesn't Exist. Would you like to Register.")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
feature "User sign in" do
|
4
|
-
|
5
|
-
extend SubdomainHelpers
|
6
|
-
let!(:account) { FactoryGirl.create(:account) }
|
7
|
-
let(:sign_in_url) { "http://#{account.subdomain}.example.com/sign_in" }
|
8
|
-
let(:root_url) { "http://#{account.subdomain}.example.com/" }
|
9
|
-
within_account_subdomain do
|
10
|
-
|
11
|
-
scenario "signs in as an account owner successfully" do
|
12
|
-
visit root_url
|
13
|
-
expect(page.current_url).to eq(mtdevise.new_user_session_url(subdomain: account.subdomain))
|
14
|
-
fill_in "user_email", :with => account.owner.email
|
15
|
-
fill_in "user_password", :with => "password"
|
16
|
-
click_button "Sign-In"
|
17
|
-
expect(page).to have_content("Signed in as #{account.owner.email}")
|
18
|
-
expect(page.current_url).to eq(mtdevise.root_url(subdomain: account.subdomain))
|
19
|
-
end
|
20
|
-
|
21
|
-
scenario "attempts sign in with an invalid password and fails" do
|
22
|
-
visit root_url
|
23
|
-
expect(page.current_url).to eq(mtdevise.new_user_session_url(subdomain: account.subdomain))
|
24
|
-
fill_in "user_email", :with => account.owner.email
|
25
|
-
fill_in "user_password", :with => "invalidpwd"
|
26
|
-
click_button "Sign-In"
|
27
|
-
expect(page).to have_content("Invalid email or password.")
|
28
|
-
expect(page.current_url).to eq(mtdevise.new_user_session_url(subdomain: account.subdomain))
|
29
|
-
end
|
30
|
-
|
31
|
-
scenario "attempts sign in with an invalid email address and fails" do
|
32
|
-
visit root_url
|
33
|
-
expect(page.current_url).to eq(mtdevise.new_user_session_url(subdomain: account.subdomain))
|
34
|
-
fill_in "user_email", :with => "foo@example.com"
|
35
|
-
fill_in "user_password", :with => "password"
|
36
|
-
click_button "Sign-In"
|
37
|
-
expect(page).to have_content("Invalid email or password.")
|
38
|
-
expect(page.current_url).to eq(mtdevise.new_user_session_url(subdomain: account.subdomain))
|
39
|
-
end
|
40
|
-
|
41
|
-
scenario "cannot sign in if not a part of this subdomain" do
|
42
|
-
other_account = FactoryGirl.create(:account)
|
43
|
-
visit mtdevise.root_url(:subdomain => account.subdomain)
|
44
|
-
fill_in "user_email", :with => other_account.owner.email
|
45
|
-
fill_in "user_password", :with => "password"
|
46
|
-
click_button "Sign-In"
|
47
|
-
expect(page).to have_content("Invalid email or password.")
|
48
|
-
expect(page.current_url).to eq(mtdevise.new_user_session_url(subdomain: account.subdomain))
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# require "spec_helper"
|
2
|
-
|
3
|
-
# feature "User signup" do
|
4
|
-
# let!(:account) { FactoryGirl.create(:account) }
|
5
|
-
# let(:root_url) { "http://#{account.subdomain}.example.com/" }
|
6
|
-
|
7
|
-
# before do
|
8
|
-
|
9
|
-
# end
|
10
|
-
|
11
|
-
# scenario "under an account" do
|
12
|
-
# visit root_url
|
13
|
-
# click_link "New User?"
|
14
|
-
# fill_in "Email", :with => "user@example.com"
|
15
|
-
# fill_in "Password", :with => "password"
|
16
|
-
# fill_in "Password confirmation", :with => "password"
|
17
|
-
# click_button "Sign up"
|
18
|
-
# page.should have_content("You have signed up successfully.")
|
19
|
-
# page.current_url.should == root_url
|
20
|
-
# end
|
21
|
-
# end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the Account::DashboardHelper. For example:
|
5
|
-
#
|
6
|
-
# describe Account::DashboardHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
# module Mtdevise
|
14
|
-
# describe Account::DashboardHelper do
|
15
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
16
|
-
# end
|
17
|
-
# end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the Account::SessionsHelper. For example:
|
5
|
-
#
|
6
|
-
# describe Account::SessionsHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
#module Mtdevise
|
14
|
-
# describe Account::SessionsHelper do
|
15
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
16
|
-
# end
|
17
|
-
#end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the Account::UsersHelper. For example:
|
5
|
-
#
|
6
|
-
# describe Account::UsersHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
#module Mtdevise
|
14
|
-
# describe Account::UsersHelper do
|
15
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
16
|
-
# end
|
17
|
-
#end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the AccountsHelper. For example:
|
5
|
-
#
|
6
|
-
# describe AccountsHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
#module Mtdevise
|
14
|
-
# describe AccountsHelper do
|
15
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
16
|
-
# end
|
17
|
-
#end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the DashboardHelper. For example:
|
5
|
-
#
|
6
|
-
# describe DashboardHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
#module Mtdevise
|
14
|
-
# describe DashboardHelper do
|
15
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
16
|
-
# end
|
17
|
-
#end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the WelcomeHelper. For example:
|
5
|
-
#
|
6
|
-
# describe WelcomeHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# expect(helper.concat_strings("this","that")).to eq("this that")
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
#module Mtdevise
|
14
|
-
# describe WelcomeHelper do
|
15
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
16
|
-
# end
|
17
|
-
#end
|