File: test_focus.rb

package info (click to toggle)
ruby-zentest 4.11.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 536 kB
  • sloc: ruby: 3,210; makefile: 13
file content (35 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'rubygems'
require 'minitest/autorun'
require 'focus'

class TestFocus < Minitest::Test
  def setup
    @x = 1
  end

  def teardown
    assert_equal 2, @x
  end

  def test_focus
    @x += 1
  end

  def test_ignore1
    flunk "ignore me!"
  end

  def test_ignore2
    flunk "ignore me!"
  end

  def test_ignore3
    flunk "ignore me!"
  end

  def test_focus2
    @x += 1
  end

  focus :test_focus, :test_focus2
end