Sha256: 119b9f9d76a5afce2f0a4e75a178659b723f23f916a6e1f4353f475b6896d925

Contents?: true

Size: 251 Bytes

Versions: 14

Compression:

Stored size: 251 Bytes

Contents

# A test model with an example generator
class SimpleModel < Praxis::Mapper::Model
  def self.generate
    data = {
      :id => /\d{10}/.gen.to_i, 
      :name => /\w+/.gen, 
      :parent_id  => /\d{10}/.gen.to_i
    }

    self.new(data)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
praxis-mapper-4.5 spec/spec_fixtures.rb
praxis-mapper-4.4.1 spec/spec_fixtures.rb
praxis-mapper-4.4 spec/spec_fixtures.rb
praxis-mapper-4.3 spec/spec_fixtures.rb
praxis-mapper-4.2 spec/spec_fixtures.rb
praxis-mapper-4.1.2 spec/spec_fixtures.rb
praxis-mapper-4.1.1 spec/spec_fixtures.rb
praxis-mapper-4.1 spec/spec_fixtures.rb
praxis-mapper-4.0 spec/spec_fixtures.rb
praxis-mapper-3.4.0 spec/spec_fixtures.rb
praxis-mapper-3.3 spec/spec_fixtures.rb
praxis-mapper-3.2 spec/spec_fixtures.rb
praxis-mapper-3.1.2 spec/spec_fixtures.rb
praxis-mapper-3.1.1 spec/spec_fixtures.rb