Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Inlining Cucumber and RSpec tasks since they are only 20 lines

  • Loading branch information...
commit faeafe41484823791d2552fedd817f2875d18556 1 parent 94e5820
@brynary authored
Showing with 23 additions and 24 deletions.
  1. +23 −1 Rakefile
  2. +0 −13 rake_tasks/features.rake
  3. +0 −10 rake_tasks/rspec.rake
View
24 Rakefile
@@ -1,9 +1,31 @@
require 'rubygems'
require "rake/gempackagetask"
require "rake/clean"
+require "spec/rake/spectask"
+require 'cucumber/rake/task'
$:.unshift('lib')
require 'features2cards'
-Dir['rake_tasks/**/*.rake'].each { |rake| load rake }
+desc "Run the Features2Cards specs"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = ENV['RCOV']
+ t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
+ t.verbose = true
+end
+
+Cucumber::Rake::Task.new(:features) do |t|
+ t.cucumber_opts = "--format pretty"
+end
+
+namespace :features do
+ Cucumber::Rake::Task.new(:rcov) do |t|
+ t.rcov = true
+ t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/}
+ t.rcov_opts << %[-o "features_rcov"]
+ end
+end
+
View
13 rake_tasks/features.rake
@@ -1,13 +0,0 @@
-require 'cucumber/rake/task'
-
-Cucumber::Rake::Task.new(:features) do |t|
- t.cucumber_opts = "--format pretty"
-end
-
-namespace :features do
- Cucumber::Rake::Task.new(:rcov) do |t|
- t.rcov = true
- t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/}
- t.rcov_opts << %[-o "features_rcov"]
- end
-end
View
10 rake_tasks/rspec.rake
@@ -1,10 +0,0 @@
-require "spec/rake/spectask"
-
-desc "Run the Features2Cards specs"
-Spec::Rake::SpecTask.new do |t|
- t.spec_opts = ['--options', "spec/spec.opts"]
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.rcov = ENV['RCOV']
- t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
- t.verbose = true
-end
Please sign in to comment.
Something went wrong with that request. Please try again.