Skip to content

Commit

Permalink
refs #3-test specでエラーにする
Browse files Browse the repository at this point in the history
  • Loading branch information
hamapu committed Sep 29, 2019
1 parent 4c79cb3 commit ba00ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/issues_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe "#index" do
let!(:issue) { Issue.create(title: "title", body: "body", kind: :try) }

before { get "/issues" }
let(:response_body) { JSON.parse(response.body, object_class: OpenStruct) }

Expand Down Expand Up @@ -76,7 +76,7 @@
before { post "/issues/delete", params: del_params }
let(:del_response_body) { JSON.parse(response.body, object_class: OpenStruct) }
it { expect(response.code).to eq "200" }
it { expect(del_response_body.payload.del_flg.to_i).to eq 1 }
it { expect(del_response_body.payload.del_flg.to_i).to eq 0 } #エラーにする
end

end

0 comments on commit ba00ea3

Please sign in to comment.