Sha256: 5cae9575551a1f62965a7f219881b85599bef483dc68cf1db4e0f59e0beaac67

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

require 'spec_helper'

describe MurmurHash do
  let :all do
    [MurmurHash1, MurmurHash2, MurmurHash2A]
  end

  it "update nil" do
    all.each do |c|
      murmur = c.new
      expect{ murmur.update }.to raise_error(ArgumentError)
    end
  end

  it "rawdigest no arguments" do
    all.each do |c|
      expect{ c.rawdigest }.to raise_error(ArgumentError)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
digest-murmurhash-0.2.3 spec/exception_spec.rb
digest-murmurhash-0.2.2 spec/exception_spec.rb
digest-murmurhash-0.2.1 spec/exception_spec.rb