Sha256: 3ae70a31982307840a4d1473ae6044bcd21b97ae10be7ddeee70c857cc4c4d9f

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

require 'spec_helper'
require 'hexdump'

describe Hexdump do
  let(:data)    { ("A" * 32) + ("B" * 32) + ("C" * 32) }
  let(:hexdump) { Hexdump::Hexdump.new.dump(data) }

  describe ".hexdump" do
    it "must write the hexdump lines of the given data to the output" do
      expect {
        subject.hexdump(data)
      }.to output(hexdump).to_stdout
    end
  end

  describe ".dump" do
    it "must write the hexdump lines of the given data to the output" do
      expect {
        subject.dump(data)
      }.to output(hexdump).to_stdout
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hexdump-1.0.1 spec/hexdump_module_spec.rb
hexdump-1.0.0 spec/hexdump_module_spec.rb