rspec/cucumber/webrat - remember this shit

In a feature file you CANNOT comment out text on the end of a line - it will say your shit isn't implemented.

'test.local' is the URL rspec uses when running specs for controllers - so 'test.local' is the URL webrat/cucumber uses. Making possible testing of subdomain handling.

Single quotes are treated differently than double quotes - have no fucking idea why

Sometimes running features works - sometimes not. Putting the following in features/support/env.rb helped when some steps would pass when others wouldn't:

#Seed the DB
Fixtures.reset_cache  
fixtures_folder = File.join(RAILS_ROOT, 'spec', 'fixtures')
fixtures = Dir[File.join(fixtures_folder, '*.yml')].map {|f| File.basename(f, '.yml') }
Fixtures.create_fixtures(fixtures_folder, fixtures)

This will ONLY work if I have fixtures defined for my models. I need to get with the automated fixture hipsters.

Posted by jeremy 18/01/2009 at 00h58