Sha256: 10ae9ec4f0a11b3886f558c20a94f84c10ef386c8d0f95deb02215594088ba1b

Contents?: true

Size: 499 Bytes

Versions: 8

Compression:

Stored size: 499 Bytes

Contents

require 'assert'

require 'assert/suite'
require 'assert/view/base'
require 'assert/runner'

class Assert::Runner

  class BasicTest < Assert::Context
    desc "a basic runner"
    setup do
      @suite  = Assert::Suite.new
      @view   = Assert::View::Base.new(@suite, StringIO.new("", "w+"))
    end
    subject { Assert::Runner.new(@suite, @view) }

    should have_instance_methods :run, :count

    should "return an integer exit code" do
      assert_equal 0, subject.run
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
assert-1.1.0 test/runner_test.rb
assert-1.0.0 test/runner_test.rb
assert-0.8.1 test/runner_test.rb
assert-0.8.0 test/runner_test.rb
assert-0.4.0 test/runner_test.rb
assert-0.3.0 test/runner_test.rb
assert-0.2.1 test/runner_test.rb
assert-0.2.0 test/runner_test.rb