Skip to content

Commit

Permalink
append jasmine's core path & the configuration's specs path to sprock…
Browse files Browse the repository at this point in the history
…ets, so it works in debug=1 mode
  • Loading branch information
searls committed Sep 1, 2011
1 parent 8a78020 commit 6b2d611
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/initializers/sprockets.rb
@@ -1,6 +1,11 @@
require 'processes_jasmine_directives'
require 'jasmine'
require 'jasmine-core'

assets = Rails.application.assets

assets.register_preprocessor 'application/javascript', ProcessesJasmineDirectives
assets.register_preprocessor 'text/css', ProcessesJasmineDirectives
assets.register_preprocessor 'text/css', ProcessesJasmineDirectives

assets.append_path Jasmine::Config.new.spec_dir
assets.append_path Jasmine::Core.path

0 comments on commit 6b2d611

Please sign in to comment.