Sha256: e2da119babe3a696e941ccd49b57fee759712ccec2a35cfdd9fbc09fe6c5363a

Contents?: true

Size: 518 Bytes

Versions: 46

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'

main = self

describe "The RSpec DSL" do
  methods = [
    :describe,
    :share_examples_for,
    :shared_examples_for,
    :shared_examples,
    :shared_context,
    :share_as
  ]

  methods.each do |method_name|
    describe "##{method_name}" do
      it "is not added to every object in the system" do
        expect(main).to respond_to(method_name)
        expect(Module.new).to respond_to(method_name)
        expect(Object.new).not_to respond_to(method_name)
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 12 rubygems

Version Path
rspec-core-2.14.0.rc1 spec/rspec/core/dsl_spec.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/dsl_spec.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/spec/rspec/core/dsl_spec.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-core-2.13.0/spec/rspec/core/dsl_spec.rb
rspec-core-2.13.1 spec/rspec/core/dsl_spec.rb
rspec-core-2.13.0 spec/rspec/core/dsl_spec.rb