Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #35 from acrmp/require-mc-assertions

Add spec for MiniTest::Chef::Spec.
  • Loading branch information...
commit b4d7563b98aa40c45b605e63fa9cd5444246ea95 2 parents 0378383 + 0ae0d54
David Calavera authored
View
1  lib/minitest-chef-handler/spec.rb
@@ -1,6 +1,7 @@
module MiniTest
module Chef
require 'minitest/spec'
+ require 'minitest-chef-handler/assertions'
class Spec < MiniTest::Spec
include Assertions
View
18 spec/minitest-chef-handler/spec_spec.rb
@@ -0,0 +1,18 @@
+require File.expand_path('../../spec_helper', __FILE__)
+
+describe MiniTest::Chef::Spec do
+
+ let(:spec) { Class.new(MiniTest::Chef::Spec).new(:sample_spec) }
+
+ it "makes the node object available" do
+ spec.must_respond_to(:node)
+ end
+
+ it "makes minitest-chef-handler assertions available" do
+ spec.must_respond_to(:assert_installed)
+ end
+
+ it "makes minitest-chef-handler resource helpers available" do
+ spec.must_respond_to(:package)
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.