Sha256: ac7df4e3e319feb60ab32aa2d3331ab98fce22b6357b2b1d4f33752b020ae9bb

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

require 'spec_helper'

main = self
describe "The describe method" do
  it 'is available on the main object' do
    main.should respond_to(:describe)
  end

  it 'is available on modules (so example groups can be nested inside them)' do
    Module.new.should respond_to(:describe)
  end

  it 'is not available on other types of objects' do
    Object.new.should_not respond_to(:describe)
  end
end

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/rspec/core/dsl_spec.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/rspec/core/dsl_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.11.1/spec/rspec/core/dsl_spec.rb
gem_repackager-0.1.0 support/gems/rspec-core-2.11.1/spec/rspec/core/dsl_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/rspec-core-2.11.1/spec/rspec/core/dsl_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/rspec-core-2.11.1/spec/rspec/core/dsl_spec.rb
rspec-core-2.11.1 spec/rspec/core/dsl_spec.rb
rspec-core-2.11.0 spec/rspec/core/dsl_spec.rb