Sha256: 22fddc3a7e95f4c34ba583b82931231a69558b26ddedce0c836a222c4b03c8ba

Contents?: true

Size: 631 Bytes

Versions: 16

Compression:

Stored size: 631 Bytes

Contents

require "#{::File.dirname(__FILE__)}/../../test_helper"

class TestString < Test::Unit::TestCase
  context "to_hash" do
    setup do
      @string =<<-EOS
        a = "a"
        b = "b"
        c = "c"
      EOS
    end

    should "turn it into a hash with the values from =" do
      @string.to_hash[:a].should == "a"
      @string.to_hash[:b].should == "b"
      @string.to_hash[:c].should == "c"
    end
  end
  context "macify" do
    setup do
      @mac = "00:0c:29:44:f1:0f"
    end

    should "should turn the mac into the response on the command-line" do
      @mac.macify.should == "0:c:29:44:f1:f"
    end
  end
  
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
auser-poolparty-1.1.6 test/poolparty/core/string_test.rb
auser-poolparty-1.1.7 test/poolparty/core/string_test.rb
auser-poolparty-1.2.0 test/poolparty/core/string_test.rb
auser-poolparty-1.2.1 test/poolparty/core/string_test.rb
auser-poolparty-1.2.10 test/poolparty/core/string_test.rb
auser-poolparty-1.2.11 test/poolparty/core/string_test.rb
auser-poolparty-1.2.12 test/poolparty/core/string_test.rb
auser-poolparty-1.2.2 test/poolparty/core/string_test.rb
auser-poolparty-1.2.3 test/poolparty/core/string_test.rb
auser-poolparty-1.2.4 test/poolparty/core/string_test.rb
auser-poolparty-1.2.7 test/poolparty/core/string_test.rb
auser-poolparty-1.2.8 test/poolparty/core/string_test.rb
auser-poolparty-1.2.9 test/poolparty/core/string_test.rb
fairchild-poolparty-1.1.5 test/poolparty/core/string_test.rb
fairchild-poolparty-1.2.12 test/poolparty/core/string_test.rb
poolparty-1.2.2 test/poolparty/core/string_test.rb