Skip to content

Commit f2d0334

Browse files
committed
Updating Rakefile.
Moving to both steak as well as rspec2.1. Fun fun!
1 parent f04be7c commit f2d0334

1 file changed

Lines changed: 12 additions & 17 deletions

File tree

Rakefile

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@ require 'rubygems'
44
require 'bundler'
55
Bundler.setup
66

7-
require 'spec/rake/spectask'
8-
require 'cucumber/rake/task'
9-
10-
#this lets us run 'rake spec' to run rspec tests
11-
Spec::Rake::SpecTask.new do |t|
12-
13-
#tell rspec where our spec files are
14-
t.spec_files = FileList['spec/*_spec.rb',]
15-
16-
#get some nice pretty options
17-
t.spec_opts = ["--colour", "--backtrace"]
18-
#
19-
#include our spec helper
20-
t.ruby_opts = ["-r spec/spec_helper.rb"]
7+
require 'rspec/core/rake_task'
8+
9+
desc 'Run the code in spec'
10+
RSpec::Core::RakeTask.new do |t|
11+
t.pattern = "spec/**/*_spec.rb"
2112
end
2213

23-
#this lets us run 'rake features' to run cucumber tests
24-
Cucumber::Rake::Task.new(:features) do |t|
25-
t.cucumber_opts = "--format progress"
14+
namespace :spec do
15+
16+
desc "Run the code examples in spec/acceptance"
17+
RSpec::Core::RakeTask.new(:acceptance) do |t|
18+
t.pattern = "spec/acceptance/**/*_spec.rb"
19+
end
20+
2621
end
2722

2823
#this namespace is used for all database related tasks

0 commit comments

Comments
 (0)