Change single quotes to double quotes
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
describe CommentsController do
|
||||
|
||||
describe 'POST create' do
|
||||
describe "POST create" do
|
||||
before do
|
||||
@process = create(:legislation_process, debate_start_date: Date.current - 3.days, debate_end_date: Date.current + 2.days)
|
||||
@question = create(:legislation_question, process: @process, title: "Question 1")
|
||||
@@ -10,7 +10,7 @@ describe CommentsController do
|
||||
@unverified_user = create(:user)
|
||||
end
|
||||
|
||||
it 'creates an comment if the comments are open' do
|
||||
it "creates an comment if the comments are open" do
|
||||
sign_in @user
|
||||
|
||||
expect do
|
||||
@@ -18,7 +18,7 @@ describe CommentsController do
|
||||
end.to change { @question.reload.comments_count }.by(1)
|
||||
end
|
||||
|
||||
it 'does not create a comment if the comments are closed' do
|
||||
it "does not create a comment if the comments are closed" do
|
||||
sign_in @user
|
||||
@process.update_attribute(:debate_end_date, Date.current - 1.day)
|
||||
|
||||
@@ -27,7 +27,7 @@ describe CommentsController do
|
||||
end.not_to change { @question.reload.comments_count }
|
||||
end
|
||||
|
||||
it 'does not create a comment for unverified users when the commentable requires it' do
|
||||
it "does not create a comment for unverified users when the commentable requires it" do
|
||||
sign_in @unverified_user
|
||||
|
||||
expect do
|
||||
|
||||
Reference in New Issue
Block a user