Undefined method `blueprint' with rspec/machinist/faker

Hi,

I just started using Machinist for my project. So I successfully
installed notahat-machinist and faker gems and as soon as I run a spec
I get the following error :

/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
base.rb:1964:in method_missing': undefined methodblueprint’ for
#Class:0xb7a23a98 (NoMethodError)

Can you help me please?

Thank you by advance.
-Yoann-Z

Hi Yoann,

It might help if you post the actual code. The error you have could be
caused by nearly everything.

Cheers,
Jeroen

Hi,

Thank you for your reply.
I found the answer elsewhere this morning.

I had to require Machinist and Sham in the file blueprints.rb :

require ‘machinist/active_record’
require ‘sham’

It works fine right now.

Thank you very much
-Yoann-Z