Fixture Replacement plugin

Plugin details

FixtureReplacement rails plugin (version 2 and on)

Websitehttp://replacefixtures.rubyforge.org/ Repositorygit://github.com/smtlaissezfaire/fixturereplacement.git Author Scott Taylor Tags fixture LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/smtlaissezfaire/fixturereplacement.git

Using FixtureReplacement within script/console
========================

  % script/console
  >> include FixtureReplacement


Using it with RSpec
========================

Add the following to your spec/spec_helper.rb file, in the configuration section:

Spec::Runner.configure do |config|
  config.include FixtureReplacement
end


Using it with Test::Unit
========================

Add the following to your test/test_helper.rb file:

class Test::Unit::TestCase

  include FixtureReplacement

end


Running the Specs/Tests for FixtureReplacement
======================================

You will need rspec (version 1.0.8 or later) to run the specs, as well as the sqlite3-ruby gem (and sqlite3 installed):

  % sudo gem install rspec
  % sudo gem install sqlite3-ruby


cd into the fixture_replacement plugin directory:

  % cd vendor/plugins/fixture_replacement


Then run with rake

  % rake


There are also some tests for test/unit. These mainly serve as regressions, but you are free to run them as well.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago