Installing Guard gem causes tests to fail - Solved

1 minute read Aug 18, 2011 Comments
I was tinkering with a new rails application, using RSpec2 and Cucumber for my testing. I was able to run all my tests by typing: rake spec rake cucumber This worked perfectly, but every time I’d make a change, I’d have to run both commands. So I looked into the Guard gem, after watching the excellent RailsCast by Ryan Bates. I started by adding to my gemfile: gem 'guard-spork' gem 'guard-rspec' gem 'guard-cucumber' Then to configure guard, I ran:

Cucumber testing woes - spaces

1 minute read Aug 16, 2011 Comments
So I’m working along, writing my tests, and I run into an issue where my Cucumber test is failing. I go to check it out, and see why. This is what I see: I’ve slightly outlined the relevant data in yellow. I went back, and copy/pasted the data from the creation from my factories, to the expectation of text. It still gave the same error. I was dumbfounded, as I can clearly see the exact same text in my “And I should see” as well as the actual results.