Tag: 烧杯

未定义的局部变量或方法 – 使用Beaker测试Puppet模块

我对这一切都很陌生。 我正在尝试使用Beaker测试一个木偶模块。 我一直这样: NoMethodError: undefined method `describe’ for #Beaker::TestCase:0x007fd6f95e6460 /Users/user1/beaker/Puppet/puppet-files/spec/classes/unit_spec.rb:3 /Users/user1/.rvm/gems/ruby-2.2.7/gems/beaker-3.24.0/bin/beaker:9 /Users/user1/.rvm/gems/ruby-2.2.7/bin/ruby_executable_hooks:15 /Users/user1/.rvm/gems/ruby-2.2.7/bin/ruby_executable_hooks:15. This is the command that I’m running – “beaker –hosts myhost.yaml –pre-suite spec”. 我的unit_spec.rb包含: require ‘puppetlabs_spec_helper/rake_tasks’ describe ‘application’ do context ‘applied to supported operating system’ do on_supported_os.each do |os, facts| context “#{os}” do let(:facts) do facts end context “without any parameters” do […]