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

fix nested it in specs

This commit is contained in:
Dom Postorivo 2019-02-25 20:55:08 -05:00
parent da14470383
commit df79923101

View File

@ -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