Sha256: e3bdde8d037c2b5f7e3df39ee7c8e79e81adb0da40f8963c340ce7b86e705cf3

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

module Spec

  class RespondNegator < ShouldBase
  
    def initialize(target)
      @target = target
    end
    
    def to(expected)
      fail_with_message(default_message("should not respond to", expected)) if @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_negator.rb
rspec-0.5.14 lib/spec/api/helper/respond_negator.rb
rspec-0.5.15 lib/spec/api/helper/respond_negator.rb
rspec-0.5.13 lib/spec/api/helper/respond_negator.rb
rspec-0.5.16 lib/spec/api/helper/respond_negator.rb