Merge branch 'dev' into dependabot/bundler/rubyzip-1.2.2

This commit is contained in:
Brenda Wallace authored and GitHub committed 2018-09-11 15:51:03 +12:00
commit fb4dca03d2
1 file changed
+2 -1
+2 -1
View File
@@ -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" }