Change single quotes to double quotes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
feature 'Admin milestone statuses' do
|
||||
feature "Admin milestone statuses" do
|
||||
|
||||
background do
|
||||
admin = create(:administrator)
|
||||
@@ -8,7 +8,7 @@ feature 'Admin milestone statuses' do
|
||||
end
|
||||
|
||||
context "Index" do
|
||||
scenario 'Displaying only not hidden statuses' do
|
||||
scenario "Displaying only not hidden statuses" do
|
||||
status1 = create(:milestone_status)
|
||||
status2 = create(:milestone_status)
|
||||
|
||||
@@ -23,7 +23,7 @@ feature 'Admin milestone statuses' do
|
||||
expect(page).to have_content status2.description
|
||||
end
|
||||
|
||||
scenario 'Displaying no statuses text' do
|
||||
scenario "Displaying no statuses text" do
|
||||
visit admin_milestone_statuses_path
|
||||
|
||||
expect(page).to have_content("There are no milestone statuses created")
|
||||
@@ -34,23 +34,23 @@ feature 'Admin milestone statuses' do
|
||||
scenario "Create status" do
|
||||
visit admin_milestone_statuses_path
|
||||
|
||||
click_link 'Create new milestone status'
|
||||
click_link "Create new milestone status"
|
||||
|
||||
fill_in 'milestone_status_name', with: 'New status name'
|
||||
fill_in 'milestone_status_description', with: 'This status description'
|
||||
click_button 'Create Milestone Status'
|
||||
fill_in "milestone_status_name", with: "New status name"
|
||||
fill_in "milestone_status_description", with: "This status description"
|
||||
click_button "Create Milestone Status"
|
||||
|
||||
expect(page).to have_content 'New status name'
|
||||
expect(page).to have_content 'This status description'
|
||||
expect(page).to have_content "New status name"
|
||||
expect(page).to have_content "This status description"
|
||||
end
|
||||
|
||||
scenario "Show validation errors in status form" do
|
||||
visit admin_milestone_statuses_path
|
||||
|
||||
click_link 'Create new milestone status'
|
||||
click_link "Create new milestone status"
|
||||
|
||||
fill_in 'milestone_status_description', with: 'This status description'
|
||||
click_button 'Create Milestone Status'
|
||||
fill_in "milestone_status_description", with: "This status description"
|
||||
click_button "Create Milestone Status"
|
||||
|
||||
within "#new_milestone_status" do
|
||||
expect(page).to have_content "can't be blank", count: 1
|
||||
@@ -68,12 +68,12 @@ feature 'Admin milestone statuses' do
|
||||
click_link "Edit"
|
||||
end
|
||||
|
||||
fill_in 'milestone_status_name', with: 'Other status name'
|
||||
fill_in 'milestone_status_description', with: 'Other status description'
|
||||
click_button 'Update Milestone Status'
|
||||
fill_in "milestone_status_name", with: "Other status name"
|
||||
fill_in "milestone_status_description", with: "Other status description"
|
||||
click_button "Update Milestone Status"
|
||||
|
||||
expect(page).to have_content 'Other status name'
|
||||
expect(page).to have_content 'Other status description'
|
||||
expect(page).to have_content "Other status name"
|
||||
expect(page).to have_content "Other status description"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user