Skip to content

Commit

Permalink
Fix(Notifications Views Spec): Use string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisma committed Apr 26, 2019
1 parent 429e518 commit cc97657
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 @@ -60,15 +60,15 @@
let(:count) { 3 }

it 'displays the count' do
expect(rendered).to have_text(count.to_s + ' times')
expect(rendered).to have_text("#{count} times")
end
end

context 'when the notification occured once' do
let(:count) { 1 }

it 'does not display the count' do
expect(rendered).not_to have_text(count.to_s + ' times')
expect(rendered).not_to have_text("#{count} times")
end
end
end
Expand Down

0 comments on commit cc97657

Please sign in to comment.