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:
commit
5b53bf19c5
@ -63,14 +63,14 @@ describe Faker::Internet do
|
|||||||
|
|
||||||
it "password_with_integer_arg" do
|
it "password_with_integer_arg" do
|
||||||
(1..32).to_a.each do |min_length|
|
(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
|
||||||
end
|
end
|
||||||
|
|
||||||
it "password_max_with_integer_arg" do
|
it "password_max_with_integer_arg" do
|
||||||
(1..32).to_a.each do |min_length|
|
(1..32).to_a.each do |min_length|
|
||||||
max_length = min_length + 4
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user