Skip to content

Commit

Permalink
Moved acceptance tests into their own folder so they don't interfere …
Browse files Browse the repository at this point in the history
…with specs.
  • Loading branch information
steveyken authored and ndbroadbent committed Feb 23, 2012
1 parent 76a7588 commit 282bb62
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path("../../spec_helper.rb", __FILE__)
require File.expand_path("../../spec/spec_helper.rb", __FILE__)

require 'steak'
require 'capybara/rails'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions lib/tasks/steak_tasks.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace :spec do
desc 'Run the acceptance specs in acceptance'
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'acceptance/**/*_spec.rb'
end

task :statsetup do
if File.exist?('acceptance')
require 'rails/code_statistics'
::STATS_DIRECTORIES << ['Acceptance specs', 'acceptance']
::CodeStatistics::TEST_TYPES << 'Acceptance specs'
end
end
end

0 comments on commit 282bb62

Please sign in to comment.