require 'test/test_helper'
require 'test/unit'
require 'lib/phocus'

# should focus a method
class TestTestUnitA < Test::Unit::TestCase
  def test_foo
    flunk "not focused"
  end

  focus
  def test_bar
    assert true
  end

  def test_baz
    flunk "not focused"
  end
end

# should focus methods across test classes
class TestTestUnitB < Test::Unit::TestCase
  def test_abc
    flunk "not focused"
  end

  focus
  def test_def
    assert true
  end

  focus
  def test_ghi
    assert true
  end
end

# should not complain when no methods are left after focusing
class TestTestUnitC < Test::Unit::TestCase
  def test_xyz
    flunk "not focused"
  end
end
