One problem when running everything in a headless Vagrant instance is that you lose the ability to see Guard Rspec notifications. Actually, you don’t lose it but it’s not immediately obvious how to configure Guard. Since Guard is running inside Vagrant, it can’t display the Growl notifications on the guest operating system. However, you can [...]
Home» Posts tagged "rspec"
Preventing the stupid mistakes, like committing focus:true
I frequently use focus: true in my specs when I’m working in a particular area of the code. I also frequently forget to remove this tag and subsequently commit the spec to Git, resulting in most of the test suite not running. Duh! “Removing focus:true” is my most frequent commit message :-/ The solution is [...]
Getting rid of annoying Postgres output in RSpec
You’ll often see lots of this in your RSpec output if you’re using Postgres: NOTICE: CREATE TABLE will create implicit sequence "companies_id_seq" for serial column "companies.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "companies_pkey" for table "companies" NOTICE: CREATE TABLE will create implicit sequence "users_id_seq" for serial column "users.id" NOTICE: CREATE TABLE [...]