Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'cucumber' of git://github.com/baldowl/sinatras-hat

  • Loading branch information...
commit 6aef1f60cef1d5fbcf13a18470a32a5a92931e90 2 parents 1827fe3 + 73553b7
Pat Nakajima authored February 06, 2009
7  Rakefile
... ...
@@ -1,7 +1,8 @@
1 1
 require 'spec/rake/spectask'
2 2
 require 'rake/classic_namespace'
  3
+require 'cucumber/rake/task'
3 4
  
4  
-task :default => [:spec]
  5
+task :default => [:spec, :features]
5 6
  
6 7
 desc "Run all specs"
7 8
 Spec::Rake::SpecTask.new('spec') do |t|
@@ -9,6 +10,10 @@ Spec::Rake::SpecTask.new('spec') do |t|
9 10
   t.spec_opts = ['--colour']
10 11
 end
11 12
 
  13
+Cucumber::Rake::Task.new do |c|
  14
+  c.cucumber_opts = '--format progress'
  15
+end
  16
+
12 17
 namespace :sinatra do
13 18
   desc "Clone edge Sinatra"
14 19
   task :clone do
4  features/steps/common_steps.rb
@@ -56,6 +56,10 @@ def to_param
56 56
   Given "a mounted model"
57 57
 end
58 58
 
  59
+When /^I make a GET request for that record$/ do
  60
+  get "/people/#{@record.to_param}"
  61
+end
  62
+
59 63
 When /^I make a GET request for that record using the '(\w+)' format$/ do |format|
60 64
   get "/people/#{@record.to_param}.#{format}"
61 65
 end

0 notes on commit 6aef1f6

Please sign in to comment.
Something went wrong with that request. Please try again.