Dave the Ninja
unread,Aug 7, 2010, 7:08:46 AM8/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pickle
Hi guys,
I have been going through my code, google and pickle source all day in
relation to using Factory_Girl, Mongo_Mapper and Pickle for testing my
application.
I am currently getting the following error, and it has been the same
one all day no matter what configurations I use:
Feature: Contact us page
In order to send a general enquiry email
As a visitor to the site
I want to be presented with a set of fields to allow me to send an
email to Des
Scenario: Visitor submits the form with valid
details # features/contact_us_view.feature:12
Given I am on "the contact us
page" # features/step_definitions/
web_steps.rb:19
When I enter valid details into the public contact form and press
send # features/step_definitions/application_steps.rb:12
Then a enquiry should
exist # features/
step_definitions/pickle_steps.rb:19
uninitialized constant Enquiry::PickleAdapter (NameError)
./features/step_definitions/pickle_steps.rb:20:in `/^((?:(?:)|(?:
(?:a|an|another|the|that) )?(?:(?:(?:(?:first|last|(?:\d+(?:st|nd|rd|
th))) )?(?:enquiry))|(?:(?:enquiry)(?::? "(?:[^\"]|\.)*"))))) should
exist(?: with ((?:(?:\w+: (?:(?:(?:)|(?:(?:a|an|another|the|that) )?(?:
(?:(?:(?:first|last|(?:\d+(?:st|nd|rd|th))) )?(?:enquiry))|(?:
(?:enquiry)(?::? "(?:[^\"]|\.)*"))))|(?:"(?:[^\"]|\.)*"|nil|true|false|
[+-]?[0-9_]+(?:\.\d+)?))), )*(?:\w+: (?:(?:(?:)|(?:(?:a|an|another|the|
that) )?(?:(?:(?:(?:first|last|(?:\d+(?:st|nd|rd|th))) )?(?:enquiry))|
(?:(?:enquiry)(?::? "(?:[^\"]|\.)*"))))|(?:"(?:[^\"]|\.)*"|nil|true|
false|[+-]?[0-9_]+(?:\.\d+)?)))))?$/'
features/contact_us_view.feature:15:in `Then a enquiry should
exist'
-----------
The Uninitialized Constant error is the thing that I can not track
down. I know pickle can work with Mongo_Mapper and Factory_Girl as a
friend of mine has it working, I also have his code and after
replicating his setup my app still does not play dice.
Any information on where and how this error occurs would be highly
grateful
Cheers
Davie