Sha256: 2ed7518ba7284a0e2cd0faf8815492ccc26bb026f9845b0cdd8e59bc0a229cd5

Contents?: true

Size: 597 Bytes

Versions: 6

Compression:

Stored size: 597 Bytes

Contents

require File.dirname(__FILE__) + "/test_helper.rb"

class DreamyMysqlHostTest < Test::Unit::TestCase

  context "Creation" do
    setup do
      @xml = <<EOF
<data>
  <account_id>8675309</account_id>
  <domain>mysql.site.dreamhosters.com</domain>
  <home>haass.tuna.dreamhost.com</home>
</data>
EOF
    end

    should "create a new user from xml" do
      host = Dreamy::MysqlHost.new_from_xml(Hpricot.XML(@xml))
      assert_equal 8675309, host.account_id
      assert_equal "mysql.site.dreamhosters.com", host.domain
      assert_equal "haass.tuna.dreamhost.com", host.home
    end
  end
  
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
jordan-brough-dreamy-0.5.1 test/mysql_host_test.rb
sant0sk1-dreamy-0.5.0 test/mysql_host_test.rb
sant0sk1-dreamy-0.5.1 test/mysql_host_test.rb
dreamy-0.5.3 test/mysql_host_test.rb
dreamy-0.5.2 test/mysql_host_test.rb
dreamy-0.5.1 test/mysql_host_test.rb