Sha256: 921f49681a2908c8d11df0ff541dfe526ffc6f1357356298a9755fb824daa0d7
Contents?: true
Size: 357 Bytes
Versions: 15
Compression:
Stored size: 357 Bytes
Contents
module TestDummy::TestHelper def dummy(scope, options = { }) instance = scope.respond_to?(:build) ? scope.build(options) : scope.new(options) if (block_given?) yield(instance) end instance.dummy! instance.save! instance end alias_method :a, :dummy alias_method :an, :dummy alias_method :one_of, :dummy end
Version data entries
15 entries across 15 versions & 1 rubygems