test/dummy_tests/integration_test.rb in minitest-spec-rails-3.1.2 vs test/dummy_tests/integration_test.rb in minitest-spec-rails-4.3.0
- old
+ new
@@ -1,30 +1,39 @@
require 'test_helper_dummy'
module IntegrationTests
- def self.included(klass)
- klass.class_eval do
+ extend ActiveSupport::Concern
+ included do
- it 'works' do
- get root_path
- status.must_equal 200
- end
+ fixtures :all
- describe 'nested 1' do
+ it 'works' do
+ get root_path
+ status.must_equal 200
+ end
- it('works') { skip }
+ it 'can find the app' do
+ app.must_be_instance_of Dummy::Application
+ end
- describe 'nested 2' do
+ describe 'nested 1' do
- it('works') { skip }
+ it('works') { skip }
- end
+ 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
end
-class IntegrationTest < ActionController::IntegrationTest
+class IntegrationTest < ActionDispatch::IntegrationTest
include IntegrationTests
end