Sha256: 245d0ef6addad70e49f5c145e007cb60f65e2185c5f56a06811ea04ad492c07c

Contents?: true

Size: 635 Bytes

Versions: 2

Compression:

Stored size: 635 Bytes

Contents

require 'assert'
require 'dk/has_the_runs'

require 'much-plugin'

module Dk::HasTheRuns

  class UnitTests < Assert::Context
    desc "Dk::HasTheRuns"
    setup do
      @mixin_class = Dk::HasTheRuns
      @runs_class  = Class.new{ include Dk::HasTheRuns }
    end
    subject{ @mixin_class }

    should "use much-plugin" do
      assert_includes MuchPlugin, subject
    end

  end

  class InitTests < UnitTests
    desc "when init"
    setup do
      @runs = @runs_class.new
    end
    subject{ @runs }

    should have_imeths :runs

    should "have no runs by default" do
      assert_equal [], subject.runs
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dk-0.1.1 test/unit/has_the_runs_tests.rb
dk-0.1.0 test/unit/has_the_runs_tests.rb