mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Update RSpec situation. Should fix #960
This commit is contained in:
parent
d8528071f0
commit
50e80d2673
8 changed files with 114 additions and 97 deletions
|
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
|
||||
ENV['RSPEC'] = 'true' # allows autotest to discover rspec
|
||||
ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
|
||||
system (RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV
|
||||
system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
|
||||
$stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")
|
||||
|
|
|
|||
13
script/spec
13
script/spec
|
|
@ -1,5 +1,10 @@
|
|||
#!/usr/bin/env ruby
|
||||
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../vendor/plugins/rspec/lib"))
|
||||
require 'rubygems'
|
||||
require 'spec'
|
||||
exit ::Spec::Runner::CommandLine.run(::Spec::Runner::OptionParser.parse(ARGV, STDERR, STDOUT))
|
||||
if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
|
||||
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
||||
else
|
||||
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
|
||||
end
|
||||
require 'spec/autorun'
|
||||
exit ::Spec::Runner::CommandLine.run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue