Skip to content

Commit

Permalink
re-worded tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbruce committed Apr 1, 2016
1 parent 8a221c3 commit 35d0aeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/features/pages/summary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
end

scenario 'I expect to see my answers' do
expect(page).not_to have_content 'Probate case'
expect(page).to have_no_content 'Probate case'
expect(page).to have_content 'Name of deceasedFooChange'
expect(page).to have_content "Date of death#{(Time.zone.today - 1.month).strftime(Date::DATE_FORMATS[:default])}Change"
end
Expand All @@ -57,8 +57,8 @@

scenario 'I do not expect to see the probate sub headers' do
expect(page).to have_content 'Probate case'
expect(page).not_to have_content 'Name of deceased'
expect(page).not_to have_content 'Date of death'
expect(page).to have_no_content 'Name of deceased'
expect(page).to have_no_content 'Date of death'
end
end

Expand Down

0 comments on commit 35d0aeb

Please sign in to comment.