Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean up autorun a bit (now it's in one place)

  • Loading branch information...
commit d0b3159711d8f5431d198f48c95a5bf0d40cdf00 1 parent da2d87b
@dchelimsky dchelimsky authored
View
3  example_specs/spec_helper.rb
@@ -2,10 +2,9 @@
$LOAD_PATH << File.expand_path('../../../rspec-expectations/lib', __FILE__)
$LOAD_PATH << File.expand_path('../../../rspec-mocks/lib', __FILE__)
require 'rspec/expectations'
-require 'rspec/autorun'
+require 'rspec/core'
Rspec.configure do |c|
c.mock_with :rspec
- c.include Rspec::Matchers
end
View
2  lib/rspec/autorun.rb
@@ -1,2 +1,2 @@
require 'rspec/core'
-Rspec::Core.configuration.autorun!
+Rspec::Core::Runner.autorun
View
4 lib/rspec/core/configuration.rb
@@ -183,10 +183,6 @@ def alias_example_to(new_name, extra_options={})
Rspec::Core::ExampleGroup.alias_example_to(new_name, extra_options)
end
- def autorun!
- Rspec::Core::Runner.autorun
- end
-
def filter_run(options={})
@filter = options unless @filter and @filter[:line_number] || @filter[:full_description]
end
View
2  lib/rspec/core/example_group.rb
@@ -11,7 +11,7 @@ class ExampleGroup
attr_accessor :running_example
def self.inherited(klass)
- Rspec::Core.configuration.autorun!
+ Rspec::Core::Runner.autorun
Rspec::Core.world.example_groups << klass
end
Please sign in to comment.
Something went wrong with that request. Please try again.