Sha256: 8e2540f68e2f735d7bf209bf9c19d5e721b65e643a15176a14eab9611dc8b1eb
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 KB
Contents
# # Install a rake task for running examples written using rspec. # # More information about rspec: http://relishapp.com/rspec # This file has been written to conform to RSpec v2.4.0 # begin require "rspec/core/rake_task" desc "Run RSpec code examples" RSpec::Core::RakeTask.new(:spec_test) do |t| # Glob pattern to match files. t.pattern = 'spec/**/*_spec.rb' # By default, if there is a Gemfile, the generated command will include # 'bundle exec'. Set this to true to ignore the presence of a Gemfile, # and not add 'bundle exec' to the command. t.skip_bundler = false # Name of Gemfile to use t.gemfile = 'Gemfile' # Whether or not to fail Rake when an error occurs (typically when # examples fail). t.fail_on_error = true # A message to print to stderr when there are failures. t.failure_message = nil # Use verbose output. If this is set to true, the task will print the # executed spec command to stdout. t.verbose = true # Use rcov for code coverage? t.rcov = false # Path to rcov. t.rcov_path = 'rcov' # Command line options to pass to rcov. # See 'rcov --help' about this t.rcov_opts = %w{} # Command line options to pass to ruby. # See 'ruby --help' about this t.ruby_opts = %w{} # Path to rspec t.rspec_path = 'rspec' # Command line options to pass to rspec. # See 'rspec --help' about this t.rspec_opts = %w{--color --backtrace} end rescue LoadError => ex task :spec_test do abort 'rspec is not available. In order to run spec, you must: gem install rspec' end ensure task :spec => [:spec_test] task :test => [:spec_test] end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noe-1.1.0 | ./tasks/spec_test.rake |
noe-1.1.0 | ./templates/ruby/src/tasks/spec_test.rake |