Permalink
Browse files

fix tests

  • Loading branch information...
johnbintz committed Nov 22, 2011
1 parent 38327e6 commit 634f60ffe6799723fd9f6d0c5f4e95cccc2d4a69
@@ -1,4 +1,5 @@
require 'tilt/template'
+require 'rainbow'
module Jasmine::Headless
class CoffeeTemplate < Tilt::Template
@@ -39,15 +39,15 @@
end
it 'should return the cached file' do
- subject.should include(%{<script type="text/javascript" src="#{file_path}"></script>})
+ subject.should include(%{<script from="jhw" type="text/javascript" src="#{file_path}"></script>})
end
end
context 'not cached' do
let(:cache_return) { false }
it 'should return the generated js' do
- subject.should include(%{<script type="text/javascript">#{source}</script>})
+ subject.should include(%{<script from="jhw" type="text/javascript">#{source}</script>})
end
end
end
@@ -53,6 +53,8 @@
runner.stubs(:keep_runner).returns(true)
runner.stubs(:runner_filename).returns(false)
+
+ Sprockets::Environment.any_instance.stubs(:find_asset).returns(stub(:body => ''))
end
let(:files_list) { Jasmine::Headless::FilesList.new }

0 comments on commit 634f60f

Please sign in to comment.