From 634f60ffe6799723fd9f6d0c5f4e95cccc2d4a69 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 22 Nov 2011 14:01:05 -0500 Subject: [PATCH] fix tests --- lib/jasmine/headless/coffee_template.rb | 1 + spec/lib/jasmine/headless/coffee_template_spec.rb | 4 ++-- spec/lib/jasmine/headless/template_writer_spec.rb | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/jasmine/headless/coffee_template.rb b/lib/jasmine/headless/coffee_template.rb index b6764e6..5ad8918 100644 --- a/lib/jasmine/headless/coffee_template.rb +++ b/lib/jasmine/headless/coffee_template.rb @@ -1,4 +1,5 @@ require 'tilt/template' +require 'rainbow' module Jasmine::Headless class CoffeeTemplate < Tilt::Template diff --git a/spec/lib/jasmine/headless/coffee_template_spec.rb b/spec/lib/jasmine/headless/coffee_template_spec.rb index f07e769..c4abdea 100644 --- a/spec/lib/jasmine/headless/coffee_template_spec.rb +++ b/spec/lib/jasmine/headless/coffee_template_spec.rb @@ -39,7 +39,7 @@ describe Jasmine::Headless::CoffeeTemplate do end it 'should return the cached file' do - subject.should include(%{}) + subject.should include(%{}) end end @@ -47,7 +47,7 @@ describe Jasmine::Headless::CoffeeTemplate do let(:cache_return) { false } it 'should return the generated js' do - subject.should include(%{}) + subject.should include(%{}) end end end diff --git a/spec/lib/jasmine/headless/template_writer_spec.rb b/spec/lib/jasmine/headless/template_writer_spec.rb index 3b4ad0d..2a9c380 100644 --- a/spec/lib/jasmine/headless/template_writer_spec.rb +++ b/spec/lib/jasmine/headless/template_writer_spec.rb @@ -53,6 +53,8 @@ describe Jasmine::Headless::TemplateWriter do 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 }