lib/service_contract/mock.rb in service_contract-0.2.1 vs lib/service_contract/mock.rb in service_contract-0.3.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'random-word' +require 'faker' module ServiceContract class Mock class << self # generates fake data that adheres to the types defined in the service contract @@ -43,10 +43,10 @@ else case field.name when "int", :int Random.new.rand(10000000) when "string", :string - RandomWord.nouns.next + Faker::Hacker.noun when "float", :float Random.new.rand(10000.0) when "boolean", :boolean [true, false].sample end \ No newline at end of file