|
| 1 | +# |
| 2 | +# Author:: Joe Williams (<joe@joetify.com>) |
| 3 | +# Copyright:: Copyright (c) 2009 Joe Williams |
| 4 | +# License:: Apache License, Version 2.0 |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +# |
| 18 | + |
| 19 | +require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec_helper")) |
| 20 | + |
| 21 | +describe Chef::Provider::Script, "action_run" do |
| 22 | + before(:each) do |
| 23 | + @node = mock("Chef::Node", :null_object => true) |
| 24 | + @new_resource = mock("Chef::Resource::ErlCall", |
| 25 | + :null_object => true, |
| 26 | + :code => "io:format(\"burritos~n\", []).", |
| 27 | + :interpreter => 'erl_call', |
| 28 | + :user => nil, |
| 29 | + :group => nil, |
| 30 | + :cookie => nil, |
| 31 | + :distributed => false, |
| 32 | + :name_type => "sname", |
| 33 | + :node_name => "chef@localhost" |
| 34 | + ) |
| 35 | + @provider = Chef::Provider::ErlCall.new(@node, @new_resource) |
| 36 | + end |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +end |
0 commit comments