Sha256: 091bda79eff3da7f1692a79029a59354d0d4840284ad113f499b24e50d9b11f8

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 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

5 entries across 5 versions & 1 rubygems

Version Path
rspec-0.5.12 lib/spec/api/helper/respond_helper.rb
rspec-0.5.15 lib/spec/api/helper/respond_helper.rb
rspec-0.5.13 lib/spec/api/helper/respond_helper.rb
rspec-0.5.14 lib/spec/api/helper/respond_helper.rb
rspec-0.5.16 lib/spec/api/helper/respond_helper.rb