test/support/isolation_abstract_unit.rb
# overwrite the default `build_app` method to inject the gem for testing
overwrite the default `build_app` method to inject the gem for testing
overwrite the default ` build_app ` method to inject the gem for testing
def build_app
      super
      environment = File.read("#{app_path}/config/application.rb")
      if environment =~ /(module AppTemplate)/
        rails_queue_path = File.expand_path(
          "../../../../lib/rails-queue", __FILE__
        )
        File.open("#{app_path}/config/application.rb", 'w') do |f|
          f.puts $` + %Q(\nrequire "#{rails_queue_path}"\n) + $1 + $'
        end
      end
    end
def build_app super environment = File . read ( "#{app_path}/config/application.rb" ) if environment =~ / (module AppTemplate) / rails_queue_path = File . expand_path ( "../../../../lib/rails-queue" , __FILE__ ) File . open ( "#{app_path}/config/application.rb" , 'w' ) do | f | f . puts $` + %Q(\nrequire "#{rails_queue_path}"\n) + $1 + $' end end end
overwrite the default `build_app` method to inject the gem for testing
overwrite the default ` build_app ` method to inject the gem for testing
# inject the path to the gem we're testing