spec/lib/password_validator_spec.rb in yukonisuru-0.0.1 vs spec/lib/password_validator_spec.rb in yukonisuru-1.0.0
- old
+ new
@@ -27,15 +27,13 @@
it { should allow_value("password*").for(:password) }
it { should_not allow_value('').for(:password) }
it { should_not allow_value(' ').for(:password) }
it { should_not allow_value(nil).for(:password) }
- it { should_not allow_value("pass").for(:password) }
it { should_not allow_value(" password").for(:password) }
it { should_not allow_value(" password ").for(:password) }
it { should_not allow_value("password ").for(:password) }
it { should_not allow_value("pass word").for(:password) }
- it { should_not allow_value("password-12345678910").for(:password) }
it { should_not allow_value("! \#$%\`|").for(:password) }
it { should_not allow_value("<>@[]\`|").for(:password) }
it { should ensure_valid_password_format_of(:password) }
it { should_not ensure_valid_password_format_of(:name) }
\ No newline at end of file