spec/faker/russian/inn_spec.rb in faker-russian-0.0.3 vs spec/faker/russian/inn_spec.rb in faker-russian-0.0.4
- old
+ new
@@ -47,10 +47,10 @@
array2 = 1000.times.map{ |n| Faker::Russian.inn(sequence_number: n) }
expect(array1).to eq(array2)
end
it 'permit just a few options' do
- expect { Faker::Russian.inn(shit: 'shit') }.to raise_error
+ expect { Faker::Russian.inn(shit: 'shit') }.to raise_error(ArgumentError)
end
it 'raise when selecting invalid region' do
expect{ Faker::Russian.inn(region_number: '90') }.to raise_error
end