¿Cómo incluyo un módulo en spec_helper.rb?
Frecuentes
Visto 911 veces
2
I am setting up testing for the paperclip gem and part of the instructions are this:
In spec_helper.rb, you'll need to require the matchers:
require "paperclip/matchers"
And include the module:
Spec::Runner.configure do |config|
config.include Paperclip::Shoulda::Matchers
end
I am wondering if I should just paste:
Spec::Runner.configure do |config|
config.include Paperclip::Shoulda::Matchers
end
into the spec_helper.rb file or if I should put it someone else and refer to it somehow in this file.
Gracias por toda tu ayuda :)
0 Respuestas
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas rspec paperclip or haz tu propia pregunta.
El mejor lugar para
Spec::Runner.configure
isspec_helper.rb
- luacassus