Sha256: d252fe4b7b13b5d3c7da64f928aa3ea702a06099dbaa96dbf47848de7fe7ef6d

Contents?: true

Size: 888 Bytes

Versions: 6

Compression:

Stored size: 888 Bytes

Contents

require 'test_helper_dummy'

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

    it 'works' do
      get root_path
      expect(status).must_equal 200
    end

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

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

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

      it 'can find the app' do
        expect(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

6 entries across 6 versions & 1 rubygems

Version Path
minitest-spec-rails-7.4.1 test/dummy_tests/integration_test.rb
minitest-spec-rails-7.4.0 test/dummy_tests/integration_test.rb
minitest-spec-rails-7.3.0 test/dummy_tests/integration_test.rb
minitest-spec-rails-7.2.0 test/dummy_tests/integration_test.rb
minitest-spec-rails-7.1.0 test/dummy_tests/integration_test.rb
minitest-spec-rails-7.0.0 test/dummy_tests/integration_test.rb