Project

degenerate

0.0
No commit activity in last 3 years
No release in over 3 years
Random data generator for use with Generative.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0
>= 0
~> 3.1.0
~> 3.1.3
 Project Readme

Degenerate

Codeship Status for niftyn8/degenerate

Degenerate is a random data generator for use with Generative.

Installation

Add this line to your application's Gemfile:

gem 'degenerate'

And then execute:

$ bundle install

Next require it in your spec/spec_helper.rb file:

require 'degenerate'

Degenerate automatically registers several primative generators with generative.

Usage

In your spec:

describe "#reverse" do
  generative do
    data(:string) { generate(:string) }

    it "should preserve length" do
      expect(string.reverse.length).to eq(string.length)
    end
  end
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/degenerate/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request