Sha256: 6d72c65272f95bd4bbd8d26704c3658d3fb83b178cb6868059b427a812c5788a
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
require 'spec_helper' require 'hexdump/format_string' describe Hexdump::FormatString do let(:fmt) { "%x" } subject { described_class.new(fmt) } describe "#%" do let(:value) { 255 } it "must format the given value" do expect(subject % value).to eq(fmt % value) end end describe "#to_s" do it "must return the format string" do expect(subject.to_s).to eq(fmt) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hexdump-1.0.1 | spec/format_string_spec.rb |