Sha256: 448471eeb831adb6818ecee1823b011914fe689d2c04d415bace16fbb8f12bf6

Contents?: true

Size: 864 Bytes

Versions: 8

Compression:

Stored size: 864 Bytes

Contents

require 'test_helper_dummy'

module IntegrationTests
  extend ActiveSupport::Concern
  included do
    fixtures :all

    it 'works' do
      get root_path
      status.must_equal 200
    end

    it 'works with assert_routing' do
      assert_routing '/', controller: 'application', action: 'index'
    end

    it 'can find the app' do
      app.must_be_instance_of Dummy::Application
    end

    describe 'nested 1' do
      it('works') { skip }

      it 'can find the app' do
        app.must_be_instance_of Dummy::Application
      end

      describe 'nested 2' do
        it('works') { skip }
      end
    end
  end
end

class IntegrationTest < ActionDispatch::IntegrationTest
  include IntegrationTests
end

class AppTest < ActionDispatch::IntegrationTest
  def test_homepage
    assert_routing '/', controller: 'application', action: 'index'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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