Sha256: a57bea3a7cb143f6d07727fcc8fdf8f0f353d5807a8498529999a1d846fcb2c0

Contents?: true

Size: 285 Bytes

Versions: 52

Compression:

Stored size: 285 Bytes

Contents

FactoryGirl.define do
  trait :metasploit_model_base do
    to_create do |instance|
      # validate so before validation derivation occurs to mimic create for ActiveRecord.
      unless instance.valid?
        raise Metasploit::Model::Invalid.new(instance)
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
metasploit-model-2.0.4 spec/factories/metasploit/model/bases.rb
metasploit-model-2.0.3 spec/factories/metasploit/model/bases.rb
metasploit-model-2.0.2 spec/factories/metasploit/model/bases.rb
metasploit-model-2.0.1 spec/factories/metasploit/model/bases.rb
metasploit-model-2.0.0 spec/factories/metasploit/model/bases.rb
metasploit-model-1.1.0 spec/factories/metasploit/model/bases.rb
metasploit-model-1.0.2 spec/factories/metasploit/model/bases.rb
metasploit-model-1.0.1 spec/factories/metasploit/model/bases.rb
metasploit-model-1.0.0 spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.2 spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.2-java spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.1 spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.1-java spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.1.pre.rspec.pre.3.pre.1 spec/factories/metasploit/model/bases.rb
metasploit-model-1.0.0.pre.rails.pre.4.0 spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.0 spec/factories/metasploit/model/bases.rb
metasploit-model-0.30.0-java spec/factories/metasploit/model/bases.rb
metasploit-model-0.29.2 spec/factories/metasploit/model/bases.rb
metasploit-model-0.29.2-java spec/factories/metasploit/model/bases.rb
metasploit-model-0.29.0 spec/factories/metasploit/model/bases.rb