cvent/octopus-deploy-cookbook

View on GitHub
spec/unit/lib_template_scripts_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
require 'spec_helper'
require 'libraries/template_scripts'

describe 'TemplateScripts' do
  let(:server_scripts) { TemplateScripts.new }
  let(:resource) do
    Class.new do
      def method_missing(method_name)
        method_name.to_s
      end
    end.new
  end

  describe 'create_instance' do
    it 'should return the script' do
      expect { server_scripts.create_instance(resource) }.to raise_error('Method not overwritten')
    end
  end

  describe 'configure_instance' do
    it 'should return the script' do
      expect { server_scripts.configure_instance(resource) }.to raise_error('Method not overwritten')
    end
  end

  describe 'delete_instance' do
    it 'should return the script' do
      expect { server_scripts.delete_instance(resource) }.to raise_error('Method not overwritten')
    end
  end
end