Sha256: 7f95cb99d7cab58419b9cdc2e7991fa2e6f1316d4977dcfedaac66107e458e27

Contents?: true

Size: 540 Bytes

Versions: 7

Compression:

Stored size: 540 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

7 entries across 7 versions & 1 rubygems

Version Path
minitest-spec-rails-5.4.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.3.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.2.2 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.2.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.1.1 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.1.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.0.4 test/cases/mini_shoulda_test.rb