-
This Week I Googled: git remote set-url, group permissions, docker, untaint, gem uninstall
This is a series of open notes on things I didn’t have committed to memory that hopefully gives some useful tidbits and also potentially alleviates any impostor syndrome as a software engineer. How to change the remote URL on a git repository I often end up cloning a git repository either without write permissions to…
-
Hooking in an LDAP Test Server to Cucumber Tests
I managed to get a custom Devise strategy with LDAP working, but had no clear way of automating tests. I wanted to validate if I still had to keep the password fresh in the database, and needed to be able to write scenarios around that in case someone attempted to refactor out the code. After…
-
devise_security_extension undefined method authenticate for nil:NilClass on Rspec Tests for Controller That Skips Authentication
After installing the Devise Security Extension to add password expiration to my Devise models, I started getting the following error on an RSpec test for a controller that does not perform authentication of the user: Failure/Error: get :index NoMethodError: undefined method `authenticate?’ for nil:NilClass After a bit of digging, I found that the helpers.rb in…