Class: Spork::TestFramework::RSpec
- Inherits:
-
Spork::TestFramework
- Object
- Spork::TestFramework
- Spork::TestFramework::RSpec
- Defined in:
- lib/spork/test_framework/rspec.rb
Constant Summary collapse
- DEFAULT_PORT =
8989
- HELPER_FILE =
File.join(Dir.pwd, "spec/spec_helper.rb")
Constants inherited from Spork::TestFramework
BOOTSTRAP_FILE, LOAD_PREFERENCE
Instance Attribute Summary
Attributes inherited from Spork::TestFramework
Instance Method Summary collapse
Methods inherited from Spork::TestFramework
available?, available_test_frameworks, #bootstrap, #bootstrapped?, default_port, #default_port, #entry_point, factory, #helper_file, helper_file, #initialize, load_preference_index, #preload, #short_name, short_name, supported_test_frameworks
Constructor Details
This class inherits a constructor from Spork::TestFramework
Instance Method Details
#rspec1? ⇒ Boolean
15 16 17 |
# File 'lib/spork/test_framework/rspec.rb', line 15 def rspec1? defined?(Spec) && !defined?(RSpec) end |
#run_tests(argv, stderr, stdout) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/spork/test_framework/rspec.rb', line 5 def run_tests(argv, stderr, stdout) if rspec1? ::Spec::Runner::CommandLine.run( ::Spec::Runner::OptionParser.parse(argv, stderr, stdout) ) else ::RSpec::Core::CommandLine.new(argv).run(stderr, stdout) end end |