Sha256: b9080bb21a544fbf2305d889dc4ed75f31c69e9c2626fdc379c29d675a6689d7

Contents?: true

Size: 755 Bytes

Versions: 35

Compression:

Stored size: 755 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/helper')
require File.expand_path(File.dirname(__FILE__) + '/fixtures/reloadable_apps/main/app')

describe "ExternalReloader" do
  describe "for external app" do
    before do
      Padrino.clear!
      Padrino.mount("ReloadableApp::External").to("/reloadable/external")
      Padrino.mount("ReloadableApp::Main").to("/reloadable")
      Padrino.load!
    end

    it "should avoid reloading the file if its path is not started with Padrino.root" do
      @app = Padrino.application
      Padrino.stub(:root, File.expand_path(File.dirname(__FILE__) + '/fixtures/reloadable_apps/main')) do
        get "/reloadable/external/base"
      end
      assert_equal "Hello External App", body
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
padrino-core-0.16.0.pre3 test/test_reloader_external.rb
padrino-core-0.16.0.pre2 test/test_reloader_external.rb
padrino-core-0.15.3 test/test_reloader_external.rb
padrino-core-0.15.2 test/test_reloader_external.rb
padrino-core-0.15.1 test/test_reloader_external.rb
padrino-core-0.15.0 test/test_reloader_external.rb
padrino-core-0.14.4 test/test_reloader_external.rb
padrino-core-0.14.3 test/test_reloader_external.rb
padrino-core-0.12.9 test/test_reloader_external.rb
padrino-core-0.14.2 test/test_reloader_external.rb
padrino-core-0.13.3.4 test/test_reloader_external.rb
padrino-core-0.14.1.1 test/test_reloader_external.rb
padrino-core-0.14.1 test/test_reloader_external.rb
padrino-core-0.14.0.2 test/test_reloader_external.rb
padrino-core-0.14.0.1 test/test_reloader_external.rb
padrino-core-0.14.0 test/test_reloader_external.rb
padrino-core-0.14.0.rc2 test/test_reloader_external.rb
padrino-core-0.14.0.rc1 test/test_reloader_external.rb
padrino-core-0.13.3.3 test/test_reloader_external.rb
padrino-core-0.13.3.2 test/test_reloader_external.rb