Skip to content

Spec failures on ruby 1.9.3 #14

Closed
Closed
@adrienthebo

Description

@adrienthebo
Failures:

  1) Puppet::Type::Network_config::ProviderInterfaces when formatting writing the allow-hotplug section should allow at most one section
     Failure/Error: content.select {|line| line.match(/^allow-hotplug /)}.length.should == 1
     NoMethodError:
       private method `select' called for #
     # ./spec/unit/provider/network_config/interfaces_spec.rb:117:in `block (4 levels) in '

  2) Puppet::Type::Network_config::ProviderInterfaces when formatting writing the allow-hotplug section should have the correct interfaces appended
     Failure/Error: content.find {|line| line.match(/^allow-hotplug /)}.should be_include("allow-hotplug eth0 lo")
     NoMethodError:
       undefined method `find' for #
     # ./spec/unit/provider/network_config/interfaces_spec.rb:121:in `block (4 levels) in '

  3) Puppet::Type::Network_config::ProviderInterfaces when formatting writing iface blocks should produce an iface block for each interface
     Failure/Error: content.select {|line| line.match(/iface eth0 inet static/)}.length.should == 1
     NoMethodError:
       private method `select' called for #
     # ./spec/unit/provider/network_config/interfaces_spec.rb:129:in `block (4 levels) in '

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions