Sha256: 1634f112cc476e58d15b3640b9543133820fa4b548074494e2cb607c915afb2c

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

$: << 'lib'

require 'fastest'

class MyTestCase < A
  def setup
    @user = { :some => :object }
  end

  def test_user_has_property
    a @user[:some] == :object
    a !@user[:other]
  end

  def test_user_has_another_property
    a @user[:some] == :object
    a !@user[:other]
  end

  def teardown
    @user = nil
  end
end

class MyOtherTestCase < A
  def setup
    @foo = [1,2,3]
  end

  def test_user_has_property
    a @foo.length == 3
    a @foo[2] > 934 # Should fail at line 27

    @foo[1] = 99

    a @foo[1] != 2
  end

  def teardown
    @bar = :something
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastest-0.1.0 examples/my_test.rb
fastest-0.0.3 examples/my_test.rb