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/2b5621ea-76ba-48d9-8b22-51dc5a8808afn%40googlegroups.com.

Reply via email to