Sha256: b36c1bee96b90381cdf1901579ad7e2072926b55d1b0150dd9a5e0808c9b0691
Contents?: true
Size: 506 Bytes
Versions: 5
Compression:
Stored size: 506 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 main.should respond_to(method_name) Module.new.should respond_to(method_name) Object.new.should_not respond_to(method_name) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems