Sha256: a259d3a281d75ee936830780834366bf48bc904550f61628471f905a6bdc75cf

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'string_nibbles'

describe StringNibbles do
  it 'should represent a string as hex nibbles' do
    s = "string"
    s.should respond_to(:nibbles)
    s.nibbles.should == s.unpack('H*').first.scan(/../).flatten.join(' ')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elia-2.4.2.pre spec/lib/string_nibbles_spec.rb
elia-2.4.1 spec/lib/string_nibbles_spec.rb
elia-2.3.2 spec/lib/string_nibbles_spec.rb
elia-1.2.0 spec/lib/string_nibbles_spec.rb
elia-1.1.0 spec/lib/string_nibbles_spec.rb