Sha256: 2632cf43c7e08625d3d790709ac4e9a18ccb880890ea29928d98922b5f7cc752
Contents?: true
Size: 828 Bytes
Versions: 8
Compression:
Stored size: 828 Bytes
Contents
require_relative 'helper' class DomainTest < MiniTest::Unit::TestCase def test_build_domain domain = MxHero::API::Domain.new data assert_equal data[:domain], domain.domain assert_equal data[:features].first[:feature], domain.features.first.component assert_equal DateTime.strptime(data[:cosLastChange].to_s, '%Q'), domain.cos_last_change assert domain.cos.is_a? MxHero::API::Cos assert_equal data[:cos][:cos], domain.cos.type end def test_change_domain_to_trial domain = MxHero::API::Domain.new data domain.change_to_trial assert_equal 'trial', domain.cos.type domain = MxHero::API::Domain.new data.merge(cos: { cos: "post_trial", edition: nil }) domain.change_to_trial assert_equal 'post_trial', domain.cos.type end def data Fixtures::Domain.data end end
Version data entries
8 entries across 8 versions & 1 rubygems