get rid of binding.pry, you can not test it with the real html because there are no params for event function, but its totally fine to do with rspec