Project

rspec-am

0.0
No commit activity in last 3 years
No release in over 3 years
This gem provides some simple association matchers if you write tests with Rspec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

Rspec-am

Rspec-am is a simple extension of Rspec 2.0 (beta) and provides some useful association matchers like belong_to, have_many and have_one (see usage). It's tested for Rails 3.0 and Rspec 2.

Gem is developed for rails (version: 3.0.0.beta4), rspec (version: 2.0.0.beta.14) and rspec-rails (version: 2.0.0.beta.17)

Usage

describe User do

it { should have_many(:books) }

it { should have_one(:boss) }

it { should belong_to(:business) }

end

Copyright

Copyright (c) 2010 SoftwareLab (software-lab.ch). See LICENSE for details.