Advertisement
Guest User

undefined method each with index rspec

a guest
Nov 15th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.64 KB | None | 0 0
  1. DEBUG: 2015-11-15 08:29:51 +0000: Hiera YAML backend starting
  2. DEBUG: 2015-11-15 08:29:51 +0000: Looking up elastic_hosts in YAML backend
  3. DEBUG: 2015-11-15 08:29:51 +0000: Looking for data source test
  4. DEBUG: 2015-11-15 08:29:51 +0000: Found elastic_hosts in test
  5. DEBUG: 2015-11-15 08:29:51 +0000: Looking up trusted_hosts in YAML backend
  6. DEBUG: 2015-11-15 08:29:51 +0000: Looking for data source test
  7. DEBUG: 2015-11-15 08:29:51 +0000: Found trusted_hosts in test
  8. .........FFF...
  9.  
  10. Failures:
  11.  
  12.   1) silex with defaults for params should contain Class[silex::params]
  13.      Failure/Error: it { should contain_class('silex::params')  }
  14.      
  15.      Puppet::Error:
  16.        Failed to parse template silex/var/config/settings.json.erb:
  17.          Filepath: /var/tmp/silex/spec/fixtures/modules/silex/templates/var/config/settings.json.erb
  18.          Line: 4
  19.          Detail: undefined method `each_with_index' for "default":String
  20.        at /var/tmp/silex/spec/fixtures/modules/silex/manifests/config.pp:25 on node centos-5.10
  21.     # ./spec/classes/init_spec.rb:21:in `block (3 levels) in <top (required)>'
  22.  
  23.   2) silex with defaults for params should contain Class[silex::install]
  24.      Failure/Error: it { should contain_class('silex::install') }
  25.      
  26.      Puppet::Error:
  27.        Failed to parse template silex/var/config/settings.json.erb:
  28.          Filepath: /var/tmp/silex/spec/fixtures/modules/silex/templates/var/config/settings.json.erb
  29.          Line: 4
  30.          Detail: undefined method `each_with_index' for "default":String
  31.        at /var/tmp/silex/spec/fixtures/modules/silex/manifests/config.pp:25 on node centos-5.10
  32.     # ./spec/classes/init_spec.rb:22:in `block (3 levels) in <top (required)>'
  33.  
  34.   3) silex with defaults for params should contain Class[silex::config]
  35.      Failure/Error: it { should contain_class('silex::config')  }
  36.      
  37.      Puppet::Error:
  38.        Failed to parse template silex/var/config/settings.json.erb:
  39.          Filepath: /var/tmp/silex/spec/fixtures/modules/silex/templates/var/config/settings.json.erb
  40.          Line: 4
  41.          Detail: undefined method `each_with_index' for "default":String
  42.        at /var/tmp/silex/spec/fixtures/modules/silex/manifests/config.pp:25 on node centos-5.10
  43.     # ./spec/classes/init_spec.rb:23:in `block (3 levels) in <top (required)>'
  44.  
  45. Finished in 0.95885 seconds (files took 0.7893 seconds to load)
  46. 15 examples, 3 failures
  47.  
  48. Failed examples:
  49.  
  50. rspec ./spec/classes/init_spec.rb:21 # silex with defaults for params should contain Class[silex::params]
  51. rspec ./spec/classes/init_spec.rb:22 # silex with defaults for params should contain Class[silex::install]
  52. rspec ./spec/classes/init_spec.rb:23
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement