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