Our Blog

Feb 02

Save while in Vim's Insert Mode

By Chris Chernesky

While doing some repeitive work in Vim today I was wondering if I could shorten the number of keystrokes or make it easier for me to save the file that I was working on and not have to get out of insert mode, save the file with a :w and then get back into insert mode.

Read more
Feb 01

I enjoy ThoughtBot’s TIL (today I learned) and I’m doing some of the same when I come across something I haven’t before.

Today’s item that I learned was that you can concatenate strings in ruby with the backslash ‘' at the end of the line.

Read more
Dec 12

I’ve been working a lot in RSpec and with FactoryGirl recently and came across a need to change the way a factory worked. This is in existing code and I didn’t want to go through the whole codebase and see where the factory was defined and do things differently. I wanted to override the existing behavior for just one test that I needed to run.

Read more
Oct 21

Turnip and DatabaseCleaner

By Chris Chernesky

I’ve been working on some Turnip BDD scenarios for an existing site and just getting through the login process has been “interesting”.

In general, I’ve just been working through the flow and when I come across some data that I need I either create a factory_girl object, or make a mock/double of a method. This was the case when I had to have some country data in the application. I dutifully created a factory and got everything set up. Binding.pry come to my rescue when I was still having problems. Imagine my surprise when my data wasn’t there.

Read more
Oct 14

Docker, Rspec and Guard

By Chris Chernesky

docker Docker has been a blessing for development, especially when I want to maintain a consistent environment for each client, I want to be able to back up those environments easily, and transport them to wherever I want to.

Read more
Older Entries Newer Entries