From 32eb3eb40179c1308a7996ec36215cb7a3653ee7 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 16 Mar 2012 11:34:57 -0400 Subject: [PATCH] what's a 'test'? --- lib/flowerbox/test_environment/cucumber.rb | 8 +++++--- lib/flowerbox/{delivery => }/tilt/feature_template.rb | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) rename lib/flowerbox/{delivery => }/tilt/feature_template.rb (92%) diff --git a/lib/flowerbox/test_environment/cucumber.rb b/lib/flowerbox/test_environment/cucumber.rb index c0ba320..fd98942 100644 --- a/lib/flowerbox/test_environment/cucumber.rb +++ b/lib/flowerbox/test_environment/cucumber.rb @@ -12,7 +12,7 @@ module Flowerbox def inject_into(sprockets) super - @sprockets.register_engine('.feature', Flowerbox::Delivery::Tilt::FeatureTemplate) + @sprockets.register_engine('.feature', Flowerbox::Tilt::FeatureTemplate) end def global_system_files @@ -84,7 +84,9 @@ JS end end -module Flowerbox::Delivery::Tilt - autoload :FeatureTemplate, 'flowerbox/delivery/tilt/feature_template' +module Flowerbox + module Tilt + autoload :FeatureTemplate, 'flowerbox/tilt/feature_template' + end end diff --git a/lib/flowerbox/delivery/tilt/feature_template.rb b/lib/flowerbox/tilt/feature_template.rb similarity index 92% rename from lib/flowerbox/delivery/tilt/feature_template.rb rename to lib/flowerbox/tilt/feature_template.rb index 12cf32f..d5e734a 100644 --- a/lib/flowerbox/delivery/tilt/feature_template.rb +++ b/lib/flowerbox/tilt/feature_template.rb @@ -1,6 +1,6 @@ require 'tilt' -module Flowerbox::Delivery::Tilt +module Flowerbox::Tilt class FeatureTemplate < Tilt::Template self.default_mime_type = 'application/javascript'