clearance 0.9.0.rc9 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of clearance might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0.rc9
1
+ 0.9.1
@@ -119,7 +119,6 @@ Gem::Specification.new do |s|
119
119
  "spec/rails_root/public/robots.txt",
120
120
  "spec/rails_root/script/cucumber",
121
121
  "spec/rails_root/script/rails",
122
- "spec/rails_root/spec/factories/clearance.rb",
123
122
  "spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE",
124
123
  "spec/rails_root/vendor/plugins/dynamic_form/README",
125
124
  "spec/rails_root/vendor/plugins/dynamic_form/Rakefile",
@@ -7,7 +7,7 @@ Rails.application.routes.draw do
7
7
  :controller => 'clearance/sessions',
8
8
  :only => [:new, :create, :destroy]
9
9
 
10
- resources :users, :controller => 'clearance/users' do
10
+ resources :users, :controller => 'clearance/users', :only => [:new, :create] do
11
11
  resource :password,
12
12
  :controller => 'clearance/passwords',
13
13
  :only => [:create, :edit, :update]
@@ -19,7 +19,7 @@ Given /^I signed up with "(.*)\/(.*)"$/ do |email, password|
19
19
  :email => email,
20
20
  :password => password,
21
21
  :password_confirmation => password
22
- end
22
+ end
23
23
 
24
24
  Given /^I am signed up and confirmed as "(.*)\/(.*)"$/ do |email, password|
25
25
  user = Factory :email_confirmed_user,
@@ -31,13 +31,13 @@ end
31
31
  # Session
32
32
 
33
33
  Then /^I should be signed in$/ do
34
- Given %{I am on the homepage}
35
- Then %{I should see "Sign out"}
34
+ Given %{I am on the homepage}
35
+ Then %{I should see "Sign out"}
36
36
  end
37
37
 
38
38
  Then /^I should be signed out$/ do
39
- Given %{I am on the homepage}
40
- Then %{I should see "Sign in"}
39
+ Given %{I am on the homepage}
40
+ Then %{I should see "Sign in"}
41
41
  end
42
42
 
43
43
  When /^session is cleared$/ do
@@ -52,6 +52,11 @@ Given /^I have signed in with "(.*)\/(.*)"$/ do |email, password|
52
52
  And %{I sign in as "#{email}/#{password}"}
53
53
  end
54
54
 
55
+ Given /^I sign in$/ do
56
+ email = Factory.next(:email)
57
+ Given %{I have signed in with "#{email}/password"}
58
+ end
59
+
55
60
  # Emails
56
61
 
57
62
  Then /^a confirmation message should be sent to "(.*)"$/ do |email|
@@ -2,10 +2,10 @@ source 'http://rubygems.org'
2
2
 
3
3
  gem 'rails', '3.0.0'
4
4
 
5
- gem 'sqlite3-ruby', '1.3.1', :require => 'sqlite3'
5
+ gem 'sqlite3-ruby', :require => 'sqlite3'
6
6
 
7
- gem 'capybara', '0.3.9'
8
- gem 'cucumber', '0.8.5'
7
+ gem 'capybara', '0.4.0'
8
+ gem 'cucumber', '0.10.0'
9
9
  gem 'cucumber-rails', '0.3.2'
10
10
  gem 'factory_girl_rails', '1.0'
11
11
  gem 'formtastic', '1.1.0.beta'
@@ -13,3 +13,5 @@ gem 'launchy', '0.3.7'
13
13
  gem 'mocha', '0.9.8'
14
14
  gem 'nokogiri', '1.4.1'
15
15
  gem 'shoulda', '2.11.3'
16
+
17
+ gem 'clearance', :path => '../..'
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended to check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(:version => 20100831183626) do
13
+ ActiveRecord::Schema.define(:version => 20101220185807) do
14
14
 
15
15
  create_table "users", :force => true do |t|
16
16
  t.string "email"
@@ -19,7 +19,7 @@ Given /^I signed up with "(.*)\/(.*)"$/ do |email, password|
19
19
  :email => email,
20
20
  :password => password,
21
21
  :password_confirmation => password
22
- end
22
+ end
23
23
 
24
24
  Given /^I am signed up and confirmed as "(.*)\/(.*)"$/ do |email, password|
25
25
  user = Factory :email_confirmed_user,
@@ -31,13 +31,13 @@ end
31
31
  # Session
32
32
 
33
33
  Then /^I should be signed in$/ do
34
- Given %{I am on the homepage}
35
- Then %{I should see "Sign out"}
34
+ Given %{I am on the homepage}
35
+ Then %{I should see "Sign out"}
36
36
  end
37
37
 
38
38
  Then /^I should be signed out$/ do
39
- Given %{I am on the homepage}
40
- Then %{I should see "Sign in"}
39
+ Given %{I am on the homepage}
40
+ Then %{I should see "Sign in"}
41
41
  end
42
42
 
43
43
  When /^session is cleared$/ do
@@ -52,6 +52,11 @@ Given /^I have signed in with "(.*)\/(.*)"$/ do |email, password|
52
52
  And %{I sign in as "#{email}/#{password}"}
53
53
  end
54
54
 
55
+ Given /^I sign in$/ do
56
+ email = Factory.next(:email)
57
+ Given %{I have signed in with "#{email}/password"}
58
+ end
59
+
55
60
  # Emails
56
61
 
57
62
  Then /^a confirmation message should be sent to "(.*)"$/ do |email|
@@ -15,7 +15,7 @@ require 'cucumber/web/tableish'
15
15
  require 'capybara/rails'
16
16
  require 'capybara/cucumber'
17
17
  require 'capybara/session'
18
- require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript
18
+ # require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript
19
19
  # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
20
20
  # order to ease the transition to Capybara we set the default here. If you'd
21
21
  # prefer to use XPath just remove this line and adjust any selectors in your
@@ -4,8 +4,8 @@ gem 'rails', '3.0.0'
4
4
 
5
5
  gem 'sqlite3-ruby', :require => 'sqlite3'
6
6
 
7
- gem 'capybara', '0.3.9'
8
- gem 'cucumber', '0.8.5'
7
+ gem 'capybara', '0.4.0'
8
+ gem 'cucumber', '0.10.0'
9
9
  gem 'cucumber-rails', '0.3.2'
10
10
  gem 'factory_girl_rails', '1.0'
11
11
  gem 'formtastic', '1.1.0.beta'
@@ -15,7 +15,7 @@ require 'cucumber/web/tableish'
15
15
  require 'capybara/rails'
16
16
  require 'capybara/cucumber'
17
17
  require 'capybara/session'
18
- require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript
18
+ # require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript
19
19
  # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
20
20
  # order to ease the transition to Capybara we set the default here. If you'd
21
21
  # prefer to use XPath just remove this line and adjust any selectors in your
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearance
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940494
5
- prerelease: true
4
+ hash: 57
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- - rc9
11
- version: 0.9.0.rc9
9
+ - 1
10
+ version: 0.9.1
12
11
  platform: ruby
13
12
  authors:
14
13
  - Dan Croak
@@ -177,7 +176,6 @@ files:
177
176
  - spec/rails_root/public/robots.txt
178
177
  - spec/rails_root/script/cucumber
179
178
  - spec/rails_root/script/rails
180
- - spec/rails_root/spec/factories/clearance.rb
181
179
  - spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE
182
180
  - spec/rails_root/vendor/plugins/dynamic_form/README
183
181
  - spec/rails_root/vendor/plugins/dynamic_form/Rakefile
@@ -338,7 +336,6 @@ test_files:
338
336
  - spec/rails_root/public/robots.txt
339
337
  - spec/rails_root/script/cucumber
340
338
  - spec/rails_root/script/rails
341
- - spec/rails_root/spec/factories/clearance.rb
342
339
  - spec/rails_root/vendor/plugins/dynamic_form/MIT-LICENSE
343
340
  - spec/rails_root/vendor/plugins/dynamic_form/README
344
341
  - spec/rails_root/vendor/plugins/dynamic_form/Rakefile
@@ -1,13 +0,0 @@
1
- Factory.sequence :email do |n|
2
- "user#{n}@example.com"
3
- end
4
-
5
- Factory.define :user do |user|
6
- user.email { Factory.next :email }
7
- user.password { "password" }
8
- user.password_confirmation { "password" }
9
- end
10
-
11
- Factory.define :email_confirmed_user, :parent => :user do |user|
12
- user.email_confirmed { true }
13
- end