This is a quick guide on how to set up Cucumber and RSpec on Padrino.
I’ve created a simple test app on github that reflects the steps written down here.
1. Create the app:
padrino g project todo -t cucumber -d sequel -b
2. In the Gemfile use rake 0.8.7:
gem 'rake', "0.8.7"
3. In features/support/env.rb comment out “require ‘spec/expectations’” so it looks like:
# require 'spec/expectations'
At this point ‘cucumber features’ should work and should return a failed test for adding two numbers.
Also at this point, if you create any models, then bare specs for them will be created in the ‘spec/models’ folder.
Please feel free to leave questions or comments if you’ve got a different way of setting things up on Padrino.
Leave a Reply