Sha256: e7773fd957dd7e59f04159772d24f7f66d51b0ba6bc87626a2557b63f7b351e7

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

module Spec

  class KindHelper < ShouldBase
  
    def initialize(target)
      @target = target
    end
    
    def of(expected_class)
      fail_with_message(default_message("should be a kind of", expected_class)) unless @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_helper.rb
rspec-0.5.15 lib/spec/api/helper/kind_helper.rb
rspec-0.5.13 lib/spec/api/helper/kind_helper.rb
rspec-0.5.14 lib/spec/api/helper/kind_helper.rb
rspec-0.5.16 lib/spec/api/helper/kind_helper.rb