Re: [rspec-users] tests using factorygirl

2012-02-29 Thread Ben Atkin
Here is the relevant documentation: http://rdoc.info/github/thoughtbot/factory_girl/file/GETTING_STARTED.md#Associations Or if it already exists you might try: FactoryGirl.define :account do location { Location.where("city = ?", 'Austin').first } end (The code in the block just needs to retur

Re: [rspec-users] issues when trying to select an option in a drop down list

2012-02-29 Thread Ben Atkin
>From reading the error and the docs, it sounds like the last one: select 'Honda', :from => "account[car_type]" ...should work. The one thing I can think of that might keep it from working would be not being scoped to an area that includes the select box. Perhaps you could install pry and add bin