Sha256: aca6cc8cd337fb5aa12105ab3d7c26a5e287566bddc119f3a1125dabb6979a1d

Contents?: true

Size: 536 Bytes

Versions: 8

Compression:

Stored size: 536 Bytes

Contents

require 'test_helper_dummy'

class PostTests < ActiveSupport::TestCase
  i_suck_and_my_tests_are_order_dependent!

  $teardown_ran = false

  setup do
    @post = user_post
  end

  teardown do
    $teardown_ran = true
  end

  should 'setup correctly' do
    @post.must_be_instance_of Post
  end

  should 'teardown correctly' do
    $teardown_ran.must_equal true
  end

  should_eventually 'will be skipped' do
    assert false
  end

  context 'level 1' do
    should 'work' do
      @post.must_be_instance_of Post
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
minitest-spec-rails-6.2.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-6.1.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-6.0.4 test/cases/mini_shoulda_test.rb
minitest-spec-rails-6.0.3 test/cases/mini_shoulda_test.rb
minitest-spec-rails-6.0.2 test/cases/mini_shoulda_test.rb
minitest-spec-rails-6.0.1 test/cases/mini_shoulda_test.rb
minitest-spec-rails-6.0.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.5.0 test/cases/mini_shoulda_test.rb