Permalink
Browse files

make tilt spec pass

  • Loading branch information...
1 parent f8e5154 commit cb66d6a2baa7ee9233ec29dd7a72591781ea7975 @benauthor committed May 4, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 spec/markaby/tilt_spec.rb
@@ -1,4 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
+require 'tilt'
module Markaby
describe Tilt, "templates" do
@@ -65,11 +66,13 @@ module Markaby
end
it "should retrieve a Tilt::MarkabyTemplate when calling Tilt['hello.mab']" do
- ::Tilt['./tilt/markaby.mab'].should == Markaby::Tilt::Template
+# ::Tilt['./tilt/markaby.mab'].should == Markaby::Tilt::Template
+ ::Tilt['./tilt/markaby.mab'].should == ::Tilt::MarkabyTemplate # isn't this how above spec actually reads?
end
it "should return a new instance of the implementation class (when calling Tilt.new)" do
- ::Tilt.new(File.dirname(__FILE__) + "/tilt/markaby.mab").should be_a_kind_of(Markaby::Tilt::Template)
+# ::Tilt.new(File.dirname(__FILE__) + "/tilt/markaby.mab").should be_a_kind_of(Markaby::Tilt::Template)
+ ::Tilt.new(File.dirname(__FILE__) + "/tilt/markaby.mab").should be_a_kind_of(::Tilt::MarkabyTemplate)
end
end
end

0 comments on commit cb66d6a

Please sign in to comment.