Hello! Thats highly likely an edgewise with our mini test integration, can you open an issue on rspec-core?
Regards Jon ---------------- m...@jonrowe.co.uk https://jonrowe.co.uk On 19 December 2020 at 01:13, Руслан Корнев wrote: > Hi! It seems that `aggregate_failures` doesn't work with `assert_select`? Or > I am doing something wrong? > > ``` > aggregate_failures do > expect(true).to eq(false) > expect(true).to eq(nil) > end > > ``` > > returns > > ``` > 0.1) Failure/Error: expect(true).to eq(false) > > expected: false > got: true > > (compared using ==) > > Diff: > @@ -1 +1 @@ > -false > +true > # ./spec/requests/tables/news_controller_spec.rb:63:in `block (5 levels) in > <top (required)>' > > 0.2) Failure/Error: expect(true).to eq(nil) > > expected: nil > got: true > > (compared using ==) > # ./spec/requests/tables/news_controller_spec.rb:64:in `block (5 levels) in > <top (required)>' > > ``` > > but > > ``` > aggregate_failures do > assert_select 'h1', 'Newss' > assert_select 'h2', count: 4 > end > > > ``` > > returns only: > > ``` > Minitest::Assertion: <Newss> expected but was > <News>.. > Expected 0 to be >= 1. > > 0) Tables::NewsController#index with follow_redirect! has correct title > Failure/Error: assert_select 'h1', 'Newss' > > Minitest::Assertion: > <Newss> expected but was > <News>.. > Expected 0 to be >= 1. > # ./spec/requests/tables/news_controller_spec.rb:63:in `block (5 levels) in > <top (required)>' > ``` > > Any thoughts? thank you -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/dejalu-217-fd5e529e-02f4-4adf-8c22-915da7f39fa0%40jonrowe.co.uk.