datamapper/dm-core — Issue #162:  Testing with Rspec: undefined method `should=' for String
Author: apocalyptiq
Created: 2011-10-30 16:58:50+00:00
State: open

I'm trying to test my DataMapper model in rspec, but it looks like rspec does not injects his extra methods like should to properies of my model.

I have model with String property, and when I do in my specs "@article.body.should = 'something'", i get the following error:

undefined method `should=' for "something":String

I'm using dm-rails.