Sha256: 691b6f99e94bec14c9e74a8ac2ae75d10fb12dc0b40f74ab72979e4aff8b54a2

Contents?: true

Size: 281 Bytes

Versions: 5

Compression:

Stored size: 281 Bytes

Contents

module Spec

  class KindNegator < ShouldBase
  
    def initialize(target)
      @target = target
    end
    
    def of(expected_class)
      fail_with_message(default_message("should not be a kind of", expected_class)) if @target.kind_of? expected_class
    end
    
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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