Undefined method `blueprint' with rspec/machinist/faker


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 :

base.rb:1964:in method_missing': undefined methodblueprint’ for
#Class:0xb7a23a98 (NoMethodError)

Can you help me please?

Thank you by advance.

Hi Yoann,

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



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