test/helper.rb in padrino-gen-0.12.5 vs test/helper.rb in padrino-gen-0.12.6

- old
+ new

@@ -12,9 +12,22 @@ require 'padrino-mailer' require 'padrino-helpers' Padrino::Generators.load_components! +# register fake URL to avoid downloading static files every time tests run +fake_uri_base = "https://raw.github.com/padrino/padrino-static/master/" +%W[ + js/dojo.js ujs/dojo.js + js/ext.js ujs/ext.js + js/jquery.js ujs/jquery.js + js/mootools.js ujs/mootools.js + js/right.js ujs/right.js + js/protopak.js js/lowpro.js ujs/prototype.js +].each do |suffix| + FakeWeb.register_uri(:get, fake_uri_base + suffix, :body => '') +end + class MiniTest::Spec include Rack::Test::Methods include Webrat::Methods include Webrat::Matchers