NewBe trouble getting started

122 views
Skip to first unread message

WJSimacek

unread,
May 13, 2009, 2:32:29 AM5/13/09
to Ruby Faker
I'm having trouble getting started.
>gem list ==>Shows that I have faker (0.3.1) installed.

In my test_helper.rb I've added the line:
require 'faker'

In my blueprints.rb file I have the following line that's giving me a
"no method" error:
Identity.blueprint do
identifier "#{Faker::Internet.user_name}.#
{Faker::Internet.domain_name}"
end


I got this from an example I'm trying to study from. I have no idea if
it's right? How to test it?
Any help will be greatly appreciated.
Wayne

Jason Edwards

unread,
May 13, 2009, 10:32:46 AM5/13/09
to ruby-...@googlegroups.com
What method does it say it can't find? That line is making three
method calls, so it would be helpful to know what it can't find.

I'm guessing you need to add "require 'faker'" to your blueprints.rb,
unless you're requiring test_helper in your blueprints.rb.

Jason

WJSimacek

unread,
May 13, 2009, 11:58:44 AM5/13/09
to Ruby Faker


On May 13, 9:32 am, Jason Edwards <jtan...@gmail.com> wrote:
> What method does it say it can't find?  That line is making three
> method calls, so it would be helpful to know what it can't find.
>
> I'm guessing you need to add "require 'faker'" to your blueprints.rb,
> unless you're requiring test_helper in your blueprints.rb.
>
> Jason
Hi Jason,
I tried adding require 'faker' to my blueprints.rb file with no
change.

The main thing I want to do is to follow the data that faker is
creating either using IRB or somehow back to the console so I can walk
through my test or through the POST/PUT actions...maybe in the log??
Running the rake test:units --trace doesn't really give me enough to
go on. [Sorry for the dumb question.] --Wayne
Reply all
Reply to author
Forward
0 new messages