thoughtbot/shoulda-matchers — Issue #50: active_record serialize_matcher: undefined method 'serialize'
Author: apeacox
Created: 2012-02-07 12:12:32+00:00
State: open

Hi there,

I was trying to use the `serialize_matcher` on a AR model, but I always get this error when running the spec:

```
Failure/Error: it { should serialize(:event_ids).as(Array) }
NoMethodError:
undefined method `serialize' for #
```

it works if I write test without using the matcher, like this:

```
it "has event_ids as a serialized Array" do
subject.serialized_attributes.keys.should include('event_ids')
subject.serialized_attributes['event_ids'].object_class.should == Array
end
```