Sha256: 52f1b813b259aa45be348db58bf83bb8aef23d54d7553e6d696955cbc86c7e84

Contents?: true

Size: 245 Bytes

Versions: 13

Compression:

Stored size: 245 Bytes

Contents

module Spec

	class RespondHelper < ShouldBase
	
		def initialize(target)
			@target = target
		end
		
		def to(expected)
			fail_with_message(default_message("should respond to", expected)) unless @target.respond_to? expected
		end
		
	end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-0.4.0 lib/spec/respond_helper.rb
rspec-0.5.11 lib/spec/api/helper/respond_helper.rb
rspec-0.5.10 lib/spec/api/helper/respond_helper.rb
rspec-0.5.1 lib/spec/api/helper/respond_helper.rb
rspec-0.5.0 lib/spec/api/helper/respond_helper.rb
rspec-0.5.3 lib/spec/api/helper/respond_helper.rb
rspec-0.5.7 lib/spec/api/helper/respond_helper.rb
rspec-0.5.5 lib/spec/api/helper/respond_helper.rb
rspec-0.5.8 lib/spec/api/helper/respond_helper.rb
rspec-0.5.9 lib/spec/api/helper/respond_helper.rb
rspec-0.5.2 lib/spec/api/helper/respond_helper.rb
rspec-0.5.4 lib/spec/api/helper/respond_helper.rb
rspec-0.5.6 lib/spec/api/helper/respond_helper.rb