test/glob_test.rb in sundawg-sinatra-assetpack-fork-0.0.12.pre1 vs test/glob_test.rb in sundawg-sinatra-assetpack-fork-0.1.6
- old
+ new
@@ -19,22 +19,25 @@
def app
App
end
should "match double-star globs recursively" do
+ app.stubs(:development?).returns(true)
get '/a'
assert body.include?("a/b/c1/hello.")
assert body.include?("a/b/c2/hi.")
assert body.include?("a/b/c2/hola.")
end
should "match single-star globs in filenames" do
+ app.stubs(:development?).returns(true)
get '/b'
assert body.include?("a/b/c2/hi.")
assert body.include?("a/b/c2/hola.")
end
should "match single-star globs in paths" do
+ app.stubs(:development?).returns(true)
get '/c'
assert body.include?("a/b/c1/hello.")
assert body.include?("a/b/c2/hi.")
assert body.include?("a/b/c2/hola.")
end