Skip to content

Commit

Permalink
Fix(Notification Views Spec): assert_select -> expect
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisma committed Apr 26, 2019
1 parent bb8d1f2 commit 429e518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/views/notifications/_list.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
end

it 'renders an error icon' do
assert_select 'i[class="fa fa-exclamation-triangle"]'
expect(rendered).to have_css('i', class: 'fa fa-exclamation-triangle')
end
end

Expand All @@ -47,7 +47,7 @@
end

it 'does not render an error icon' do
assert_select 'i[class="fa fa-exclamation-triangle"]', false
expect(rendered).not_to have_css('i', class: 'fa fa-exclamation-triangle')
end
end

Expand Down

0 comments on commit 429e518

Please sign in to comment.