1
0
mirror of https://github.com/askn/faker.git synced 2023-08-10 21:13:01 +03:00

Merge pull request #9 from art-of-dom/travis-fix

Fix nested it in specs
This commit is contained in:
Aşkın Gedik 2019-02-28 17:41:10 +03:00 committed by GitHub
commit 5b53bf19c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,14 +63,14 @@ describe Faker::Internet do
it "password_with_integer_arg" do
(1..32).to_a.each do |min_length|
it { (Faker::Internet.password(min_length).size >= min_length).should be_true }
(Faker::Internet.password(min_length).size >= min_length).should be_true
end
end
it "password_max_with_integer_arg" do
(1..32).to_a.each do |min_length|
max_length = min_length + 4
it { (Faker::Internet.password(min_length, max_length).size <= max_length).should be_true }
(Faker::Internet.password(min_length, max_length).size <= max_length).should be_true
end
end