Skip to content

Commit d20b8a6

Browse files
committed
Devise default minimum password length is now eight
1 parent f39415b commit d20b8a6

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

README.textile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
h1. !http://railsapps.github.com/images/rails-36x36.jpg(Rails Application for Devise with RSpec and Cucumber)! Rails App for Devise with RSpec and Cucumber
22

3-
Rails 3.2 example application shows how to use "Devise":http://github.com/plataformatec/devise with "RSpec":http://rspec.info/ and "Cucumber":http://cukes.info/.
3+
Rails 3.2 example application shows how to use "Devise":http://github.com/plataformatec/devise with "RSpec":http://rspec.info/ and "Cucumber":http://cukes.info/.
44

5-
* "Devise":http://github.com/plataformatec/devise gives you ready-made authentication and user management.
6-
* "RSpec":http://rspec.info/ is a popular alternative to the Test::Unit testing framework.
7-
* "Cucumber":http://cukes.info/ is used for Behaviour Driven Development.
5+
* "Devise":http://github.com/plataformatec/devise gives you ready-made authentication and user management.
6+
* "RSpec":http://rspec.info/ is a popular alternative to the Test::Unit testing framework.
7+
* "Cucumber":http://cukes.info/ is used for Behaviour Driven Development.
88

99
Best of all, there's a "detailed tutorial":http://railsapps.github.com/tutorial-rails-devise-rspec-cucumber.html to show how it's built.
1010

@@ -62,7 +62,7 @@ If you want to copy and customize the app with changes that are only useful for
6262
<pre>
6363
$ git clone git://github.com/RailsApps/rails3-devise-rspec-cucumber.git
6464
</pre>
65-
65+
6666
You'll need "git":http://git-scm.com/ on your machine. See "Rails and Git":http://railsapps.github.com/rails-git.html.
6767

6868
h3. Generate
@@ -95,7 +95,7 @@ question Install an example application?
9595

9696
Choose *rails3-devise-rspec-cucumber*. The Rails Composer tool may give you other options (other choices may have been added since these notes were written).
9797

98-
The application generator template will ask you for additional preferences:
98+
The application generator template will ask you for additional preferences:
9999

100100
<pre>
101101
question Web server for development?
@@ -143,7 +143,7 @@ If you get an error like this:
143143
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
144144
composer Running 'after bundler' callbacks.
145145
The template [...] could not be loaded.
146-
Error: You have already activated ..., but your Gemfile requires ....
146+
Error: You have already activated ..., but your Gemfile requires ....
147147
Using bundle exec may solve this.
148148
</pre>
149149

@@ -234,7 +234,7 @@ To see your application in action, open a browser window and navigate to "http:/
234234
To sign in as the default user, (unless you've changed it) use
235235

236236
* email: user@example.com
237-
* password: please
237+
* password: changeme
238238

239239
You should delete or change the pre-configured logins before you deploy your application.
240240

db/seeds.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
77
# Mayor.create(name: 'Emanuel', city: cities.first)
88
puts 'SETTING UP DEFAULT USER LOGIN'
9-
user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'please', :password_confirmation => 'please'
9+
user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'changeme', :password_confirmation => 'changeme'
1010
puts 'New user created: ' << user.name
11-
user2 = User.create! :name => 'Second User', :email => 'user2@example.com', :password => 'please', :password_confirmation => 'please'
11+
user2 = User.create! :name => 'Second User', :email => 'user2@example.com', :password => 'changeme', :password_confirmation => 'changeme
12+
'
1213
puts 'New user created: ' << user2.name

features/step_definitions/user_steps.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
def create_visitor
44
@visitor ||= { :name => "Testy McUserton", :email => "example@example.com",
5-
:password => "please", :password_confirmation => "please" }
5+
:password => "changeme", :password_confirmation => "changeme" }
66
end
77

88
def find_user
@@ -103,7 +103,7 @@ def sign_in
103103

104104
When /^I sign up with a mismatched password confirmation$/ do
105105
create_visitor
106-
@visitor = @visitor.merge(:password_confirmation => "please123")
106+
@visitor = @visitor.merge(:password_confirmation => "changeme123")
107107
sign_up
108108
end
109109

spec/factories/users.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
factory :user do
55
name 'Test User'
66
email 'example@example.com'
7-
password 'please'
8-
password_confirmation 'please'
7+
password 'changeme'
8+
password_confirmation 'changeme'
99
# required if the Devise Confirmable module is used
1010
# confirmed_at Time.now
1111
end
12-
end
12+
end

0 commit comments

Comments
 (0)