Sha256: c775b4d1cd7101acaaf7d05abd4f7b59afbaa72ddf325ce876c2e2ec58aa9e89

Contents?: true

Size: 652 Bytes

Versions: 11

Compression:

Stored size: 652 Bytes

Contents

require 'rspec/core/rake_task'
require 'bundler/gem_tasks'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

desc "generate rdoc"
task :rdoc do
  sh "bundle exec yardoc"
end

namespace :restspec do
  desc 'Run the example application defined in examples/store-api'
  task :run_example_app do
    Dir.chdir("examples/store-api") do
      exec("BUNDLE_GEMFILE=Gemfile bundle exec rails s -p 3000")
    end
  end

  desc 'Run the example application tests defined in examples/store-api-tests'
  task :run_example_tests do
    Dir.chdir("examples/store-api-tests") do
      exec("BUNDLE_GEMFILE=Gemfile bundle exec rspec spec/")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
restspec-0.3.2 Rakefile
restspec-0.3.1 Rakefile
restspec-0.3.0 Rakefile
restspec-0.2.6 Rakefile
restspec-0.2.5 Rakefile
restspec-0.2.4 Rakefile
restspec-0.2.3 Rakefile
restspec-0.2.2 Rakefile
restspec-0.2.1 Rakefile
restspec-0.2 Rakefile
restspec-0.1 Rakefile