You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#! /usr/bin/env ruby# frozen_string_literal: truebeginrequire"bundler/inline"rescueLoadError=>e
$stderr.puts"Bundler version 1.10 or later is required. Please update your Bundler"raiseeendgemfile(true){gem'rails','5.1.5',source: 'https://rubygems.org'}require'rails/all'require"minitest/autorun"classAssertionTest < ActionDispatch::IntegrationTesttest('assert outside session'){assert(true)}# controltest('assert in session'){open_session.assert(true)}endclassBugTest < Minitest::Testdeftest_controltest_instance=AssertionTest.new('test_assert_outside_session').runrefute_predicatetest_instance.assertions,:zero?enddeftest_actualtest_instance=AssertionTest.new('test_assert_in_session').runrefute_predicatetest_instance.assertions,:zero?endend
Expected behavior
The assertions in sessions should be counted in the test report.
Actual behavior
The assertions in sessions are not counted in the test report.
Assertions run inside a separate session in
ActionDispatch::IntegrationTest
are not counted in the test report.Steps to reproduce
TL;DR
Running this test
reports an incorrect number of assertions
Full Test
Expected behavior
The assertions in sessions should be counted in the test report.
Actual behavior
The assertions in sessions are not counted in the test report.
System configuration
Rails version: 5.1.5
Ruby version: 2.4.2
cc. @aud
The text was updated successfully, but these errors were encountered: