Change to_not for not_to

Eventhough some of us sentimentals still like the syntax `to_not` the current trend is to move to the new syntax `not_to`.

In this commit we are updating the references of expectations that used `to_not` to `not_to`.
This commit is contained in:
voodoorai2000
2018-12-15 12:33:28 +01:00
parent f4c402c3cb
commit 7917cea676
13 changed files with 32 additions and 32 deletions

View File

@@ -156,7 +156,7 @@ feature 'Legislation' do
visit legislation_process_path(process)
expect(page).to_not have_content("Additional information")
expect(page).not_to have_content("Additional information")
end
scenario "Shows another translation when the default locale isn't available" do
@@ -175,7 +175,7 @@ feature 'Legislation' do
visit legislation_process_path(process)
expect(page).to have_content("This phase is not open yet")
expect(page).to_not have_content("Participate in the debate")
expect(page).not_to have_content("Participate in the debate")
end
scenario 'open without questions' do
@@ -183,8 +183,8 @@ feature 'Legislation' do
visit legislation_process_path(process)
expect(page).to_not have_content("Participate in the debate")
expect(page).to_not have_content("This phase is not open yet")
expect(page).not_to have_content("Participate in the debate")
expect(page).not_to have_content("This phase is not open yet")
end
scenario 'open with questions' do
@@ -197,7 +197,7 @@ feature 'Legislation' do
expect(page).to have_content("Question 1")
expect(page).to have_content("Question 2")
expect(page).to have_content("Participate in the debate")
expect(page).to_not have_content("This phase is not open yet")
expect(page).not_to have_content("This phase is not open yet")
end
include_examples "not published permissions", :debate_legislation_process_path