Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 factory-girl-matchers.gemspec
README.md

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.

Something went wrong with that request. Please try again.