#rspec
5 postsJanuary 11, 2018
Selenium::WebDriver::Error::WebDriverError
Occasionally I run into an issue where my RSpec system tests start to fail because they’re unable to connect to the instance. It turns out…
August 23, 2017
Testing ActiveStorage Uploads in Rails 5.2
With ActiveStorage it’s pretty simple to test your controllers and check that file uploads are working the way you expect. Just configure…
August 9, 2017
Rails success? predicate deprecation
I’ve been running a new Rails project up on the branch while having a play with the new ActiveStorage module to see if it will be a good…
July 17, 2017
Testing Rails redirect_back with RSpec
Rails has a handy redirect method called which replaces the old syntax. It's improved now because it gracefully handles the case where…
July 14, 2017
Request specs for Rack::Deflate
I've been tinkering about with after reading Thoughtbot's post on the topic. Works a charm, but I noticed a lot of the example specs for…