No commit activity in last 3 years
No release in over 3 years
ActiveRecord-only support for RSpec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.5

Runtime

 Project Readme

Support for using ActiveRecord within RSpec as a standalone module (without Rails).

Usage

Put this somewhere in your spec_helper.rb (or similar):

require 'rspec-activerecord'

Then use the fixtures method and your helpers as per normal.

Configuration

RSpec.configure do |c|
  c.use_transactional_fixtures = true / false
  c.use_instantiated_fixtures = true / false
  c.fixture_path = "some/path"
  c.global_fixtures = [:foo, :bar]
end

Enhancements

Make the changes you want, then Submit a pull request on Github. I don't accept bug reports; if something breaks, you get to keep both pieces.

Licence

Since this gem is essentially nothing more than big chunks of the rspec-rails gem, this code is licenced under the same terms as that gem, as described in LICENCE.