Skip to content

Commit

Permalink
Update double to single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElsonOtake committed Dec 10, 2023
1 parent 61e9556 commit bf810a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions spec/requests/comments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
RSpec.describe 'Comments', type: :request do
before(:each) do
@member = FactoryBot.create(:member)
@post = @member.posts.create(title: "MyTitle", text: "MyText")
@post = @member.posts.create(title: 'MyTitle', text: 'MyText')
sign_in @member
end
describe 'Test instance variables' do
Expand All @@ -15,15 +15,14 @@
end
end
describe 'GET /members/:@member/posts/:post/comments/new' do
it "render template new" do
it 'render template new' do
get new_member_post_comment_path(@member, @post)
expect(response).to render_template(:new)
end
end
describe 'POST /members/:@member/posts/:post/comments' do
it "return http success" do
current_user = @member
post member_post_comments_path(@member, @post), params: { comment: {text: "My Text"} }
it 'return http success' do
post member_post_comments_path(@member, @post), params: { comment: { text: 'My Text' } }
expect(response).to_not have_http_status(:success)
end
end
Expand Down

0 comments on commit bf810a5

Please sign in to comment.