Skip to content

Commit

Permalink
Merge branch 'CHEF-1430'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsdeleo committed Jul 16, 2010
2 parents a1db269 + e1a4b21 commit 95d951c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions chef/lib/chef/provider/ruby_block.rb
Expand Up @@ -26,6 +26,7 @@ def load_current_resource

def action_create
@new_resource.block.call
@new_resource.updated = true
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion chef/spec/unit/provider/ruby_block_spec.rb
Expand Up @@ -28,9 +28,10 @@
@provider = Chef::Provider::RubyBlock.new(@new_resource, @run_context)
end

it "should call the block" do
it "should call the block and flag the resource as updated" do
@provider.action_create
$evil_global_evil_laugh.should == :mwahahaha
@new_resource.updated.should be_true
end
end

0 comments on commit 95d951c

Please sign in to comment.