Sha256: f66e56a4fc7c092efe9dd0c6cf86b2a008f61538e1f2191b15eaaf7b3ba96139

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

# Jelly Bird gem

# instalation

add to bundler ( test group )

    "jelly_bird", :git => "git@github.com:JakubOboza/jellybird.git"

# usage

assuming you have class called `Dummy` with two properties name and number you can create test factory this say:

          Dummy.define {{
            :name => /\w{3,8}/.gen,
            :number => /\d\d\d\d\d\d/.gen
          }}

to generate object in test just use `.gen` like this `Dummy.gen` to get generated object

# example

    class Dummy < Hash; end

    Dummy.define {{
      :name => /\w{3,10}/.gen
    }}

    10.times { puts Dummy.gen[:name] }

    dummy = Dummy.gen
    puts dummy[:name]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jelly_bird-0.0.2 Readme.md
jelly_bird-0.0.1 Readme.md