Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed be_false to be false #84

Merged
merged 1 commit into from
Aug 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions chapters/login_and_registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Use the encoding property to allow special symbols from Germany - you have to ad

it 'have no blank name' do
user.name = ""
user.save.should be_false
user.save.should be false
end
...
```
Expand All @@ -143,7 +143,7 @@ $ rspec spec
Failures:

1) User Model have no blank name
Failure/Error: user.save.should be_false
Failure/Error: user.save.should be false
expected: false value
got: true
# ./spec/app/models/user_spec.rb:20:in `block (2 levels) in <top (required)>'
Expand Down Expand Up @@ -203,7 +203,7 @@ describe "when name is already used" do
let(:user_second) { build(:user) }

it 'should not be saved' do
user_second.save.should be_false
user_second.save.should be false
end
end
```
Expand Down Expand Up @@ -1068,7 +1068,7 @@ When we are going to register a new user, we need to create a confirmation code

it 'should not be blank' do
user_confirmation.confirmation_code = ""
user_confirmation.valid?.should be_false
user_confirmation.valid?.should be false
end
end
...
Expand Down Expand Up @@ -1182,7 +1182,7 @@ describe "confirmation code" do

it 'should not be blank' do
user_confirmation.confirmation_code = ""
user_confirmation.valid?.should be_false
user_confirmation.valid?.should be false
end

it 'should authenticate user with correct confirmation code' do
Expand All @@ -1201,7 +1201,7 @@ describe "confirmation code" do
end

it 'should not authenticate user with incorrect confirmation code' do
user_confirmation.authenticate("wrong").should be_false
user_confirmation.authenticate("wrong").should be false
end
end
```
Expand Down