Change single quotes to double quotes
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
feature 'rake sitemap:create' do
|
||||
feature "rake sitemap:create" do
|
||||
before do
|
||||
@file ||= Rails.root.join('public', 'sitemap.xml')
|
||||
@file ||= Rails.root.join("public", "sitemap.xml")
|
||||
|
||||
# To avoid spec failures if file does not exist
|
||||
# Useful on CI environments or if file was created
|
||||
# previous to the specs (to ensure a clean state)
|
||||
File.delete(@file) if File.exist?(@file)
|
||||
|
||||
Rake::Task['sitemap:create'].reenable
|
||||
Rake.application.invoke_task('sitemap:create')
|
||||
Rake::Task["sitemap:create"].reenable
|
||||
Rake.application.invoke_task("sitemap:create")
|
||||
end
|
||||
|
||||
it 'generates a sitemap' do
|
||||
it "generates a sitemap" do
|
||||
expect(@file).to exist
|
||||
end
|
||||
|
||||
it 'generates a valid sitemap' do
|
||||
it "generates a valid sitemap" do
|
||||
sitemap = Nokogiri::XML(File.open(@file))
|
||||
expect(sitemap.errors).to be_empty
|
||||
end
|
||||
|
||||
it 'generates a sitemap with expected and valid URLs' do
|
||||
it "generates a sitemap with expected and valid URLs" do
|
||||
sitemap = File.read(@file)
|
||||
|
||||
# Static pages
|
||||
@@ -37,7 +37,7 @@ feature 'rake sitemap:create' do
|
||||
expect(sitemap).to include(proposals_path)
|
||||
expect(sitemap).to include(legislation_processes_path)
|
||||
|
||||
expect(sitemap).to have_content('0.7', count: 5)
|
||||
expect(sitemap).to have_content('daily', count: 5)
|
||||
expect(sitemap).to have_content("0.7", count: 5)
|
||||
expect(sitemap).to have_content("daily", count: 5)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user