adva-user 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'devise'
|
2
|
+
require 'devise/orm/active_record'
|
3
|
+
|
4
|
+
class AdvaCmsCreateUsers < ActiveRecord::Migration
|
5
|
+
def self.up
|
6
|
+
create_table :users do |t|
|
7
|
+
t.references :account
|
8
|
+
|
9
|
+
t.database_authenticatable
|
10
|
+
t.confirmable
|
11
|
+
t.recoverable
|
12
|
+
t.rememberable
|
13
|
+
t.trackable
|
14
|
+
t.timestamps
|
15
|
+
|
16
|
+
t.string :roles
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.down
|
21
|
+
drop_table :users
|
22
|
+
end
|
23
|
+
end
|
data/lib/adva_user/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Given /^I (?:am signed|sign) in with "([^"]*)" and "([^"]*)"$/ do |email, password|
|
2
|
-
Given %
|
2
|
+
Given %(I am on the sign in page)
|
3
3
|
# use ids to be flexible about label changes
|
4
|
-
When %
|
5
|
-
And %
|
6
|
-
And %
|
4
|
+
When %(I fill in "user_email" with "#{email}")
|
5
|
+
And %(I fill in "user_password" with "#{password}")
|
6
|
+
And %(I press "Sign in")
|
7
7
|
@user = User.find_by_email(email)
|
8
8
|
end
|
9
9
|
|
@@ -26,10 +26,8 @@ end
|
|
26
26
|
#
|
27
27
|
# Please set the passwort if the user only for auth tests
|
28
28
|
Given /^I (?:am signed|sign) in as #{capture_model}$/ do |user|
|
29
|
-
unless user.include?('the') || user.include?('"')
|
30
|
-
Given %{#{user} exists}
|
31
|
-
end
|
29
|
+
Given %(#{user} exists) unless user.include?('the') || user.include?('"')
|
32
30
|
user = model!(user)
|
33
|
-
And %
|
31
|
+
And %(I am signed in with "#{user.email}" and "#{Factory::DefaultPassword}")
|
34
32
|
end
|
35
33
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adva-user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 14
|
10
|
+
version: 0.0.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sven Fuchs
|
@@ -21,7 +21,7 @@ autorequire:
|
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
23
|
|
24
|
-
date:
|
24
|
+
date: 2012-02-27 00:00:00 Z
|
25
25
|
dependencies:
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: adva-core
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- app/views/user/unlocks/new.html.rb
|
87
87
|
- config/locales/en.yml
|
88
88
|
- config/routes.rb
|
89
|
+
- db/migrate/20100415000004_adva_cms_create_users.rb
|
89
90
|
- lib/adva/user.rb
|
90
91
|
- lib/adva-user.rb
|
91
92
|
- lib/adva_user/authorization.rb
|
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
124
|
requirements: []
|
124
125
|
|
125
126
|
rubyforge_project: "[none]"
|
126
|
-
rubygems_version: 1.8.
|
127
|
+
rubygems_version: 1.8.10
|
127
128
|
signing_key:
|
128
129
|
specification_version: 3
|
129
130
|
summary: User engine for adva-cms2
|