spec/fabricators/validator_fabricator.rb in polytrix-0.1.2 vs spec/fabricators/validator_fabricator.rb in polytrix-0.1.3

- old
+ new

@@ -1,14 +1,12 @@ -require 'hashie/mash' - Fabricator(:validator, from: Polytrix::Validator) do initialize_with do callback = @_transient_attributes.delete :callback desc = @_transient_attributes.delete :description scope = @_transient_attributes @_klass.new(desc, scope, &callback) end # Hash based initialization transient description: 'Sample validator' transient suite: LANGUAGES.sample - transient sample: SAMPLE_NAMES.sample - transient callback: Proc.new { Proc.new { |challenge| } } # rubocop:disable Proc + transient scenario: SCENARIO_NAMES.sample + transient callback: Proc.new { Proc.new { |_challenge| } } # rubocop:disable Proc end