Skip to content

Commit

Permalink
adding back in the blank_asset feature
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitngupta committed May 30, 2012
1 parent 751e9e3 commit fe0e29d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/jasmine/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'rack/jasmine/runner'
require 'rack/jasmine/focused_suite'
require 'rack/jasmine/redirect'
require 'rack/jasmine/blank_asset'
require 'rack/jasmine/cache_control'
require 'ostruct'

Expand All @@ -24,7 +25,7 @@ def self.app(config)
end

map('/images') do
run Jasmine::BlankAsset.new
run Rack::Jasmine::BlankAsset.new
end

map('/run.html') { run Rack::Jasmine::Redirect.new('/') }
Expand Down
13 changes: 13 additions & 0 deletions lib/rack/jasmine/blank_asset.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Rack
module Jasmine
class BlankAsset
def call(env)
[
200,
{ 'Content-Type' => 'image/jpeg' },
[]
]
end
end
end
end

0 comments on commit fe0e29d

Please sign in to comment.