Skip to content

nessamurmur/degenerate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Random data generators for use with Generative

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages