ruby on rails - rspec require lib only in one model -
i'm using refile gem , wanna test uploader rspec. since i'm using refile 1 model in app wanna avoid requiring in rails_helper. if try require see below require': cannot load such file -- refile/file_double (loaderror)
error. should do?
rails_helper.rb
require 'devise' require "pundit/rspec" require 'capybara/rails' require 'capybara/poltergeist'
spec/models/company_spec.rb
require 'rails_helper' require 'refile/file_double'
Comments
Post a Comment