mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-13 18:55:45 -04:00
Merge branch 'dev' into dependabot/bundler/rubyzip-1.2.2
This commit is contained in:
@@ -9,9 +9,10 @@ describe LikesController do
|
||||
before { sign_in member }
|
||||
|
||||
describe "POST create" do
|
||||
it { expect(response.content_type).to eq "application/json" }
|
||||
before { post :create, post_id: blogpost.id, format: :json }
|
||||
|
||||
it { expect(response.content_type).to eq "application/json" }
|
||||
|
||||
it { expect(Like.last.likeable_id).to eq(blogpost.id) }
|
||||
it { expect(Like.last.likeable_type).to eq('Post') }
|
||||
it { JSON.parse(response.body)["description"] == "1 like" }
|
||||
|
||||
Reference in New Issue
Block a user