Sha256: 475bdec8347f1092244101b55d936affc99dd84b8df0a840ce036a2c79717412
Contents?: true
Size: 649 Bytes
Versions: 14
Compression:
Stored size: 649 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 pending "need to figure out some way to test this across different rails versions..." end end
Version data entries
14 entries across 14 versions & 1 rubygems