Sha256: f1979cb85f293d1b52f3a17ae44c73a16844aeeb507eeaa9e3181658b9cf5898
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
require 'assert' require 'dassets-erb' require 'dassets/engine' class Dassets::Erb::Engine class UnitTests < Assert::Context desc "Dassets::Erb::Engine" setup do @engine = Dassets::Erb::Engine.new end subject{ @engine } should "be a Dassets engine" do assert_kind_of Dassets::Engine, subject assert_respond_to 'ext', subject assert_respond_to 'compile', subject end should "remove any input extension to `css`" do assert_equal '', subject.ext('erb') assert_equal '', subject.ext('erubis') assert_equal '', subject.ext('whatever') end should "compile any input content as Erb" do assert_equal @factory.erb_compiled, subject.compile(@factory.erb) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dassets-erb-0.2.0 | test/unit/engine_tests.rb |