fix tests
This commit is contained in:
parent
38327e6a95
commit
634f60ffe6
@ -1,4 +1,5 @@
|
|||||||
require 'tilt/template'
|
require 'tilt/template'
|
||||||
|
require 'rainbow'
|
||||||
|
|
||||||
module Jasmine::Headless
|
module Jasmine::Headless
|
||||||
class CoffeeTemplate < Tilt::Template
|
class CoffeeTemplate < Tilt::Template
|
||||||
|
@ -39,7 +39,7 @@ describe Jasmine::Headless::CoffeeTemplate do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'should return the cached file' do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ describe Jasmine::Headless::CoffeeTemplate do
|
|||||||
let(:cache_return) { false }
|
let(:cache_return) { false }
|
||||||
|
|
||||||
it 'should return the generated js' do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
@ -53,6 +53,8 @@ describe Jasmine::Headless::TemplateWriter do
|
|||||||
|
|
||||||
runner.stubs(:keep_runner).returns(true)
|
runner.stubs(:keep_runner).returns(true)
|
||||||
runner.stubs(:runner_filename).returns(false)
|
runner.stubs(:runner_filename).returns(false)
|
||||||
|
|
||||||
|
Sprockets::Environment.any_instance.stubs(:find_asset).returns(stub(:body => ''))
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:files_list) { Jasmine::Headless::FilesList.new }
|
let(:files_list) { Jasmine::Headless::FilesList.new }
|
||||||
|
Loading…
Reference in New Issue
Block a user