Sha256: 1cf482dc0e32572f71a0e8587f5e6ba13d7ed02edc28ab778c672dbd10bfd71a
Contents?: true
Size: 794 Bytes
Versions: 28
Compression:
Stored size: 794 Bytes
Contents
require "#{File.dirname(__FILE__)}/../../../../test_helper" include_fixture_resources include_chef_only_resources class RouteResourceTest < Test::Unit::TestCase context "Base" do setup do PoolParty::Resource.define_resource_methods @res = PoolParty::Resources::Route.new "20.0.0.0" do gateway "10.0.0.20" metric 5 route_type :net netmask "255.255.0.0" end @res.does_not_exist! @base = DependencyResolvers::Chef @base.compile_directory = test_dir end should "have the route print to chef" do str =<<-EOE route "20.0.0.0" do gateway "10.0.0.20" metric 5 route_type :net netmask "255.255.0.0" action :delete end EOE assert_equal str.chomp, @base.compile(@res) end end end
Version data entries
28 entries across 28 versions & 3 rubygems