add some rspec tests for supplier and article
This commit is contained in:
parent
7fa8193010
commit
3c264f6225
8 changed files with 110 additions and 2 deletions
|
|
@ -36,3 +36,13 @@ RSpec.configure do |config|
|
|||
# --seed 1234
|
||||
config.order = "random"
|
||||
end
|
||||
|
||||
module Faker
|
||||
class Unit
|
||||
class << self
|
||||
def unit
|
||||
['kg', '1L', '100ml', 'piece', 'bunch', '500g'].sample
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue