summaryrefslogtreecommitdiff
path: root/spec/unit/knife/supermarket_share_spec.rb
blob: 0c6d56180acbdb6cce48f4f6ef24ae1dd07c3d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

require "spec_helper"
require "chef/knife/supermarket_share"
require "chef/cookbook_uploader"
require "chef/cookbook_site_streaming_uploader"

describe Chef::Knife::SupermarketShare do

  it "should pass now" do
    # ShellOut was a red herring.  Internally it eventually calls Gem.binpath,
    # which is what was hiding the failure in the unmockening, below.
    # class SOT
    #   include Chef::Mixin::ShellOut
    # end

    # class SOT
    #   include Chef::Mixin::ShellOut
    # end
    #    SOT.new.shell_out("ls")



    # This was coming through knife.run, I've moved it here because it's the minimum
    # change to suppress the error. Uncomment it to see it in  action.
    # Gem.dir
  end
end