Sha256: 47830ba37821662ec34ddff1cea2d0837ae42e01fdb47bd909dc51b687895b09
Contents?: true
Size: 629 Bytes
Versions: 3
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true require "assert" require "dassets/engine" class Dassets::Engine class UnitTests < Assert::Context desc "Dassets::Engine" subject{ Dassets::Engine.new } should have_reader :opts should have_imeths :ext, :compile should "default the opts if none given" do exp_opts = {} assert_that(subject.opts).equals(exp_opts) end should "raise NotImplementedError on `ext` and `compile`" do assert_that{ subject.ext("foo") }.raises(NotImplementedError) assert_that{ subject.compile("some content") } .raises(NotImplementedError) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dassets-0.15.3 | test/unit/engine_tests.rb |
dassets-0.15.2 | test/unit/engine_tests.rb |
dassets-0.15.1 | test/unit/engine_tests.rb |