This has been causing some frustration recently... It seems that using Factories in my cucumber tests, in some situations causes AssociationTypeMismatch errors such as:
I\'m trying to replace fixture generation with factories using rails3-generators: https://github.com/indirect/rails3-generators#readme
When I run bundle exec rspec spec/ I have one of my tests fail that should be passing. Here\'s the error:
I have a roles model in a rails app that I have written a few quick shortcut class methods in. These methods are essentially just convenience wrappers for some commonly used finders. But this presents
I\'m fairly new to rails and TDD (as will no doubt be obvious from my post) and am having a hard time wrapping my brain around Rspec and FactoryGirl.
I\'m trying this test. model def self.tweet(url) Twitter.configure do |config| config.consumer_key = APP_CONFIG[\'twitter_consumer_key\']
this is what I\'m testing: model scope :user_pending, l开发者_开发技巧ambda { |user| where("jobs.available = 0 AND jobs.user_id = ?", user.id) }
I\'m using Factory Girl to populate my seed data and adding it to the db in seed.rb. I\'m then running my tests using Cucumber.
I\'m trying to get factory girl setup with rails 3, but I\'m getting this error when I rake开发者_StackOverflow社区 cucumber:
I am using Cucumber, RSpec, and Factory Girl for the testing of my Rails application. But I have several lookup tables that contain mostly static data. So I\'m trying to figure out the best way to pop