Sha256: f5835add655112ddc1f34e0528f1e91f56297eb4e2b91ed84a870f927145617b

Contents?: true

Size: 605 Bytes

Versions: 8

Compression:

Stored size: 605 Bytes

Contents

module RSpec::Rails
  module ModuleInclusion
    # @deprecated No replacement.
    #
    # Will be removed from rspec-rails-3.0
    #
    # This was never intended to be a public API and is no longer needed
    # internally. As it happens, there are a few blog posts citing its use, so
    # I'm leaving it here, but deprecated.
    def include_self_when_dir_matches(*path_parts)
      lambda do |c|
        RSpec.deprecate('include_self_when_dir_matches')
        c.include self, :example_group => {
          :file_path => Regexp.compile(path_parts.join('[\\\/]'))
        }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-rails-2.99.0 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.99.0.rc1 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.14.2 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.99.0.beta2 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.14.1 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.99.0.beta1 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.14.0 lib/rspec/rails/module_inclusion.rb
rspec-rails-2.14.0.rc1 lib/rspec/rails/module_inclusion.rb