Sha256: b158bad4de5cf392da0628073c2e4204fc3edbc2fe1e78df321d08f9bff43520
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Stache::Util do describe ".av_template_class" do it "returns ActionView::Template::{Foo} if such a thing exists" do Stache::Util.av_template_class("Foo").should == ActionView::Template::Foo end it "returns ActionView::TemplateFoo otherwise" do ActionView::Template.should_receive(:const_defined?).and_return(false) Stache::Util.av_template_class("Foo").should == ActionView::TemplateFoo end end describe ".needs_compilable?" do skip "need to figure out some way to test this across different rails versions..." end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stache-1.2.0 | spec/stache/util_spec.rb |
stache-1.1.1 | spec/stache/util_spec.rb |
stache-1.1.0 | spec/stache/util_spec.rb |