Sha256: 553401a8123c233fd63a59fad969f7aa01172afeef3ded1852268c9a8413d1f8

Contents?: true

Size: 655 Bytes

Versions: 27

Compression:

Stored size: 655 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 and $teardown_ran should still be false since this is the first test' do
    @post.must_be_instance_of Post
    $teardown_ran.must_equal  false
  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

27 entries across 27 versions & 2 rubygems

Version Path
minitest-spec-rails-4.7.11 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.10 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.9 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.8 test/cases/mini_shoulda_test.rb
minitest-spec-rails-orangejulius-5.0.5.pre.orangejulius test/cases/mini_shoulda_test.rb
minitest-spec-rails-orangejulius-5.0.4.pre.orangejulius test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.7 test/cases/mini_shoulda_test.rb
minitest-spec-rails-orangejulius-5.0.3.pre.orangejulius test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.0.3 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.0.2 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.0.1 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.6 test/cases/mini_shoulda_test.rb
minitest-spec-rails-5.0.0 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.5 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.4 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.3 test/cases/mini_shoulda_test.rb
minitest-spec-rails-3.1.2 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.2 test/cases/mini_shoulda_test.rb
minitest-spec-rails-4.7.1 test/cases/mini_shoulda_test.rb
minitest-spec-rails-3.1.1 test/cases/mini_shoulda_test.rb