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.11.5 lib/tasks/rspec.rake
acceptance_test-1.11.4 lib/tasks/rspec.rake
acceptance_test-1.11.3 lib/tasks/rspec.rake
acceptance_test-1.11.2 lib/tasks/rspec.rake
acceptance_test-1.11.1 lib/tasks/rspec.rake
acceptance_test-1.11.0 lib/tasks/rspec.rake
acceptance_test-1.10.12 lib/tasks/rspec.rake
acceptance_test-1.10.11 lib/tasks/rspec.rake
acceptance_test-1.10.10 lib/tasks/rspec.rake
acceptance_test-1.10.9 lib/tasks/rspec.rake
acceptance_test-1.10.8 lib/tasks/rspec.rake
acceptance_test-1.10.7 lib/tasks/rspec.rake
acceptance_test-1.10.6 lib/tasks/rspec.rake
acceptance_test-1.10.5 lib/tasks/rspec.rake
acceptance_test-1.10.4 lib/tasks/rspec.rake
acceptance_test-1.10.3 lib/tasks/rspec.rake
acceptance_test-1.10.2 lib/tasks/rspec.rake
acceptance_test-1.10.1 lib/tasks/rspec.rake
acceptance_test-1.10.0 lib/tasks/rspec.rake
acceptance_test-1.9.13 lib/tasks/rspec.rake