Skip to content

yannlugrin/factory-girl-matchers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages