Permalink
Browse files

remove unused file

  • Loading branch information...
1 parent fccc626 commit f51657c0bd1fd20205d5a779eee4df926f88d08b @dchelimsky dchelimsky committed Apr 9, 2010
View
@@ -1,6 +1,11 @@
require 'rspec/core/load_path'
require 'rspec/core/deprecation'
-require 'rspec/core/mocking/with_absolutely_nothing'
+
+require 'rspec/core/hooks'
+require 'rspec/core/subject'
+require 'rspec/core/let'
+require 'rspec/core/metadata'
+
require 'rspec/core/around_proxy'
require 'rspec/core/world'
require 'rspec/core/configuration'
@@ -9,7 +14,6 @@
require 'rspec/core/example'
require 'rspec/core/kernel_extensions'
require 'rspec/core/shared_example_group'
-require 'rspec/core/subject'
require 'rspec/core/example_group'
require 'rspec/core/formatters'
require 'rspec/core/backward_compatibility'
@@ -1,8 +1,3 @@
-require 'rspec/core/hooks'
-require 'rspec/core/example_group_subject'
-require 'rspec/core/let'
-require 'rspec/core/metadata'
-
module Rspec
module Core
class ExampleGroup
@@ -26,7 +26,7 @@ def self.included(kls)
alias :shared_examples_for :share_examples_for
- private
+ private
def ensure_shared_example_group_name_not_taken(name)
if Rspec::Core.world.shared_example_groups.has_key?(name)
@@ -1,31 +0,0 @@
-module Rspec
- module Core
- module SharedExampleGroupKernelExtensions
-
- def share_examples_for(name, &block)
- Rspec::Core.world.shared_example_groups[name] = block
- end
-
- def share_as(name, &block)
- if Object.const_defined?(name)
- puts "name was defined as #{name.inspect}"
- raise NameError, "The first argument (#{name}) to share_as must be a legal name for a constant not already in use."
- end
-
- mod = Module.new do
- @shared_block = block
-
- def self.included(kls)
- kls.module_eval(&@shared_block)
- end
- end
-
- shared_const = Object.const_set(name, mod)
- Rspec::Core.world.shared_example_groups[shared_const] = block
- end
-
- alias :shared_examples_for :share_examples_for
-
- end
- end
-end
View
@@ -126,7 +126,6 @@ Gem::Specification.new do |s|
"lib/rspec/core/ruby_project.rb",
"lib/rspec/core/runner.rb",
"lib/rspec/core/shared_example_group.rb",
- "lib/rspec/core/shared_example_group_kernel_extensions.rb",
"lib/rspec/core/subject.rb",
"lib/rspec/core/version.rb",
"lib/rspec/core/world.rb",

0 comments on commit f51657c

Please sign in to comment.