No commit activity in last 3 years
No release in over 3 years
Making easy to validate your factories created with Factory Girl
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.0
 Project Readme

Factory Girl Matchers

Build Status

Test::Unit- and RSpec-compatible one-liners that test your factories build with Factory Girl

  describe Post do
    it { should be_built_by_factory } # Factory named ':post' is used
    it { should be_created_by_factory } # Factory named ':post' is used

    it { should be_built_by_factory(:my_factory) }
    it { should be_created_by_factory(:my_factory) }
  end

Installation

gem install factory-girl-matchers

or add the following line to Gemfile:

gem 'factory-girl-matchers'

and run bundle install from your shell.

More Information

Copyright & License

Copyright (c) 2012 Yann Lugrin. See LICENSE for details.