Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in factory-bot

How do I create a factory for models that have a has_one/belongs_to relationship with validations that are usually overcome by nested attributes?

RSpec + FactoryGirl and controller specs

passing params to post :create request ruby-on-rails-3.1, Rspec, factory-girl

FactoryGirl: Creating dynamic factories with parameters?

Rails 4 Paperclip FactoryGirl file uploading

Creating a record does not appear to persist to the test database, rspec, factory_girl_rails

FactoryGirl: ActiveRecord::AssociationTypeMismatch: User expected, got #<Class:0x007>

ruby-on-rails factory-bot

How to debug "database does not exist" error in test suite?

How can I load seeds.rb into the test database without breaking FactoryGirl?

Factory Girl - has many associations

undefined method `Factory' on user_spec

ruby-on-rails factory-bot

Why is this Rspec test returning "email already taken"

Why is 'FactoryGirl.lint' giving InvalidFactoryError?

How to test upload with Carrierwave + FactoryGirl

How to test before_update callback in rails model with Rspec and FactoryGirl?

Stack level too Deep - Rspec