{"id":1145,"date":"2011-07-26T20:14:01","date_gmt":"2011-07-27T04:14:01","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=1145"},"modified":"2011-07-26T20:14:01","modified_gmt":"2011-07-27T04:14:01","slug":"setting-up-cucumber-and-rspec-on-padrino","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2011\/07\/26\/setting-up-cucumber-and-rspec-on-padrino\/","title":{"rendered":"Setting Up Cucumber and RSpec on Padrino"},"content":{"rendered":"<p>This is a quick guide on how to set up <a href=\"http:\/\/cukes.info\/\">Cucumber<\/a> and <a href=\"http:\/\/rspec.info\/\">RSpec<\/a> on <a href=\"http:\/\/www.padrinorb.com\/\">Padrino<\/a>.<\/p>\n<p>I&#8217;ve created<a href=\"https:\/\/github.com\/barce\/padrino_testlab\"> a simple test app on github<\/a> that reflects the steps written down here.<\/p>\n<p>1. Create the app:<\/p>\n<pre>padrino g project todo -t cucumber -d sequel -b<\/pre>\n<p>2. In the Gemfile use rake 0.8.7:<\/p>\n<pre>gem 'rake', \"0.8.7\"<\/pre>\n<p>3. In features\/support\/env.rb comment out &#8220;require &#8216;spec\/expectations'&#8221; so it looks like:<\/p>\n<pre># require 'spec\/expectations'<\/pre>\n<p>At this point &#8216;cucumber features&#8217; should work and should return a failed test for adding two numbers.<\/p>\n<p>Also at this point, if you create any models, then bare specs for them will be created in the &#8216;spec\/models&#8217; folder.<\/p>\n<p>Please feel free to leave questions or comments if you&#8217;ve got a different way of setting things up on Padrino.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a quick guide on how to set up Cucumber and RSpec on Padrino. I&#8217;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 &#8216;rake&#8217;, &#8220;0.8.7&#8221; 3. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,108,33],"tags":[],"class_list":["post-1145","post","type-post","status-publish","format-standard","hentry","category-how-to","category-ruby","category-webapps"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/1145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=1145"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/1145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=1145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=1145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}