spec/unit/knife/bootstrap_template_spec.rb in knife-winops-2.0.0 vs spec/unit/knife/bootstrap_template_spec.rb in knife-winops-2.1.0

- old
+ new

@@ -14,15 +14,15 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -TEMPLATE_FILE = File.expand_path(File.dirname(__FILE__)) + "/../../../lib/chef/knife/bootstrap/windows-chef-client-msi.erb" +TEMPLATE_FILE = File.expand_path(File.dirname(__FILE__)) + "/../../../lib/chef/knife/winops_bootstrap/windows-chef-client-msi.erb" require 'spec_helper' -describe Chef::Knife::BootstrapWindowsWinrm do +describe Chef::Knife::BootstrapWindowsWinRM do let(:template_file) { TEMPLATE_FILE } let(:options) { [] } let(:rendered_template) do knife.instance_variable_set("@template_file", template_file) knife.parse_options(options) @@ -42,10 +42,10 @@ Chef::Config[:knife] = @original_knife_config end before(:each) do Chef::Log.logger = Logger.new(StringIO.new) - @knife = Chef::Knife::BootstrapWindowsWinrm.new + @knife = Chef::Knife::BootstrapWindowsWinRM.new # Merge default settings in. @knife.merge_configs @knife.config[:template_file] = template_file @stdout = StringIO.new allow(@knife.ui).to receive(:stdout).and_return(@stdout)