Sha256: e7f18e3dc2a7efd2a158b2c24044513a344f2934d8af3ffa261e4daa8b821ae7

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

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

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

task :default => :spec

namespace :restspec do
  task :run_example_app do
    Dir.chdir("examples/store-api") do
      exec("BUNDLE_GEMFILE=Gemfile bundle exec rails s -p 3000")
    end
  end

  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

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 Rakefile
restspec-0.0.3 Rakefile
restspec-0.0.2 Rakefile
restspec-0.0.1 Rakefile