Sha256: 750e79533b76ef5723937228502d243a73d94c09ad425366a8005eb566396646

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

require 'spec_helper'

describe Digest::StringBuffer do
  it "update nil" do
    expect{ Digest::StringBuffer.new.update }.to raise_error(ArgumentError)
    expect{ Test.new.update }.to raise_error(ArgumentError)
  end

  it "no override digest" do
    expect{ Digest::StringBuffer.digest("a") }.to raise_error(RuntimeError)
  end
end



Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
digest-stringbuffer-0.0.3 spec/exception_spec.rb
digest-stringbuffer-0.0.2 spec/exception_spec.rb
digest-stringbuffer-0.0.1 spec/exception_spec.rb