Sha256: 0282748a70207d565458cd39fa1326d2143f62e6ff87b737357bcdd2bf1d2cb9

Contents?: true

Size: 410 Bytes

Versions: 55

Compression:

Stored size: 410 Bytes

Contents

require 'rspec'
require 'gnawrnip'

namespace :rspec do

  def create_spec_task name, paths
    pattern = paths.collect {|path| "#{path}/**/*.feature" }

    rspec_opts = "--color -r turnip/rspec "

    desc 'Run turnip acceptance tests'
    RSpec::Core::RakeTask.new(name) do |t|
      t.pattern = pattern
      t.rspec_opts = rspec_opts
    end
  end

  create_spec_task :"acceptance", %w(spec/features)

end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
acceptance_test-1.9.12 lib/tasks/rspec.rake
acceptance_test-1.9.11 lib/tasks/rspec.rake
acceptance_test-1.9.10 lib/tasks/rspec.rake
acceptance_test-1.9.9 lib/tasks/rspec.rake
acceptance_test-1.9.8 lib/tasks/rspec.rake
acceptance_test-1.9.7 lib/tasks/rspec.rake
acceptance_test-1.9.6 lib/tasks/rspec.rake
acceptance_test-1.9.5 lib/tasks/rspec.rake
acceptance_test-1.9.4 lib/tasks/rspec.rake
acceptance_test-1.9.3 lib/tasks/rspec.rake
acceptance_test-1.9.2 lib/tasks/rspec.rake
acceptance_test-1.9.1 lib/tasks/rspec.rake
acceptance_test-1.8.7 lib/tasks/rspec.rake
acceptance_test-1.8.6 lib/tasks/rspec.rake
acceptance_test-1.8.5 lib/tasks/rspec.rake
acceptance_test-1.8.4 lib/tasks/rspec.rake
acceptance_test-1.8.3 lib/tasks/rspec.rake
acceptance_test-1.8.2 lib/tasks/rspec.rake
acceptance_test-1.8.1 lib/tasks/rspec.rake
acceptance_test-1.8.0 lib/tasks/rspec.rake