Sha256: a74b3c7429052f6e30f2bf8aeae19a29ed10638e31f36cd460faf992cbacb24f

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'

main = self

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

  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

1 entries across 1 versions & 1 rubygems

Version Path
rspec-core-3.0.0.beta1 spec/rspec/core/dsl_spec.rb