Sha256: 2d40321e2ed170b645ce161bdf45079455e654f4fe126227061216f0ad7283d4

Contents?: true

Size: 628 Bytes

Versions: 2

Compression:

Stored size: 628 Bytes

Contents

require 'test/test_helper'
require 'lib/phocus/context'

# should focus a method
class TestContextA < Test::Unit::TestCase
  test "foo" do
    flunk "not focused"
  end

  focus
  test "bar" do
    assert true
  end

  test "baz" do
    flunk "not focused"
  end
end

# should focus methods across test classes
class TestContextB < Test::Unit::TestCase
  test "abc" do
    flunk "not focused"
  end

  focus
  test "def" do
    assert true
  end

  focus
  test "ghi" do
    assert true
  end
end

# should not complain when no methods are left after focusing
class TestContextC < Test::Unit::TestCase
  test "xyz" do
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mynyml-phocus-0.9.4 test/compat/test_context.rb
mynyml-phocus-0.9.8 test/compat/test_context.rb