thoughtbot/shoulda — Issue #195: ActiveRecord matches and Mongoid
Author: Nerian
Created: 2011-12-17 13:50:23+00:00
State: open

I am using Mongoid and I want to use Shoulda.

I get the following error:

```
2) Shop
Failure/Error: it { should have_many(:email_senders) }
NoMethodError:
undefined method `has_many?' for #
# ./spec/models/shop_spec.rb:6:in `block (2 levels) in '
```

```
require 'spec_helper'

describe Shop do
it { should validate_presence_of(:name) }
it { should validate_presence_of(:api_url) }
it { should have_many(:email_senders) }
end
```