gem "minitest"
require "minitest/autorun"
require "mocha/setup"

require_relative '..\..\lib\kitchen\verifier\pester'

class MockPester < Kitchen::Verifier::Pester
  def sandbox_path
    "C:/users/jdoe/temp/kitchen-temp"
  end

  def suite_test_folder
    "C:/lowercasedpath/pester/tests"
  end
end

describe "when sandboxifying a path" do
  let(:sandboxifiedPath) do
    pester = MockPester.new
    pester.sandboxify_path("C:/LOWERcasedpath/Pester/tests/test")
  end

  it "should ignore case" do
    sandboxifiedPath.must_equal "C:/users/jdoe/temp/kitchen-temp/test"
  end
end

gem "minitest"
require "minitest/autorun"
require "mocha/setup"

require_relative "../../lib/kitchen/verifier/pester"

class MockPester < Kitchen::Verifier::Pester
  def sandbox_path
    "C:/users/jdoe/temp/kitchen-temp"
  end

  def suite_test_folder
    "C:/lowercasedpath/pester/tests"
  end
end

describe "when sandboxifying a path" do
  let(:sandboxifiedPath) do
    pester = MockPester.new
    pester.sandboxify_path("C:/LOWERcasedpath/Pester/tests/test")
  end

  it "should ignore case" do
    _(sandboxifiedPath).must_equal "C:/users/jdoe/temp/kitchen-temp/test"
  end
end

Fix spec file errors on Unix
:white_check_mark: Fix spec file errors on Unix

 - Use forward slashes for cross-platform paths
 - Use recommended _(obj).must_equal per minitest deprecation warning
