Quick cheatsheet to kill your Rails session on port 3000
kill -9 $(lsof -i tcp:3000 -t)
Quick cheatsheet to kill your Rails session on port 3000
kill -9 $(lsof -i tcp:3000 -t)
If you use rubocop and want to chain [.to change] matcher, it can be quite confusing.
Here is how you should do it correctly:
subject(:service_call) { my_service.call(car_id: id) }
let(:car) { create :car }
it "passes test" do
expect { service_call }.to(
change { car.brand }.to("Opel")
.and(change { car.model }.to("Astra")
.and(change { car.production_year }.to(1997),
)
end
Ngrok let us to publish our local application for the world. It is very useful for example if we want to create a webhook integration.
These are simple steps to connect NGROK with your rails application:
Read more