0.0
No commit activity in last 3 years
No release in over 3 years
Table and class maker primarily for testing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

FlyingTable

Create and destroy tables on the fly. Quickly build up and teardown tables with class. Primarily for testing purposes.

Installation

Add this line to your application's Gemfile:

gem 'flying_table'

And then execute:

$ bundle

Or install it yourself as:

$ gem install flying_table

Usage

In your tests to create and destroy tables:

    $ @tables = FlyingTable.create(example: {name: :string, created: :date})

And when complete:

    $ @tables.teardown

To use with a block:

    $ FlyingTable.with(example: {name: :string, created: :date}) do
    $   # do stuff with Example
    $ end

In your tests to create a table with class name Example fields name: :string and created: :date

    $ FlyingTable.create(example: {name: :string, created: :date})

To create multiple tables:

    $ FlyingTable.create(example: {name: :string}, example2: {created: :date})

To destroy tables

    $ FlyingTable.destroy(:example,:example2)

Contributing

  1. Fork it ( https://github.com/[my-github-username]/flying_table/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

Author

  • Chris Moody
  • Ian Snyder

License

This is free software released into the public domain.