|
|
@ -16,10 +16,9 @@ RSpec.describe CaseLogsController, type: :controller do |
|
|
|
expect { |
|
|
|
expect { |
|
|
|
post :create, params: {}, session: valid_session |
|
|
|
post :create, params: {}, session: valid_session |
|
|
|
}.to change(CaseLog, :count).by(1) |
|
|
|
}.to change(CaseLog, :count).by(1) |
|
|
|
|
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it 'redirects to that case log' do |
|
|
|
it "redirects to that case log" do |
|
|
|
post :create, params: {}, session: valid_session |
|
|
|
post :create, params: {}, session: valid_session |
|
|
|
expect(response.status).to eq(302) |
|
|
|
expect(response.status).to eq(302) |
|
|
|
end |
|
|
|
end |
|
|
|