Permalink
Browse files

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

  • Loading branch information...
nakajima committed Feb 6, 2009
2 parents 1827fe3 + 73553b7 commit 6aef1f60cef1d5fbcf13a18470a32a5a92931e90
Showing with 10 additions and 1 deletion.
  1. +6 −1 Rakefile
  2. +4 −0 features/steps/common_steps.rb
View
@@ -1,14 +1,19 @@
require 'spec/rake/spectask'
require 'rake/classic_namespace'
+require 'cucumber/rake/task'
-task :default => [:spec]
+task :default => [:spec, :features]
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/**/*.rb']
t.spec_opts = ['--colour']
end
+Cucumber::Rake::Task.new do |c|
+ c.cucumber_opts = '--format progress'
+end
+
namespace :sinatra do
desc "Clone edge Sinatra"
task :clone do
@@ -56,6 +56,10 @@ def to_param
Given "a mounted model"
end
+When /^I make a GET request for that record$/ do
+ get "/people/#{@record.to_param}"
+end
+
When /^I make a GET request for that record using the '(\w+)' format$/ do |format|
get "/people/#{@record.to_param}.#{format}"
end

0 comments on commit 6aef1f6

Please sign in to comment.