require 'test/unit'
require 'rubygems'
require 'shoulda'
require 'shoulda/test_unit'

framework 'Foundation'

class MacRubyShouldaTest < Test::Unit::TestCase
  context "NSString instance" do
    setup do
      @string = NSString.stringWithString("~/Documents")
    end
    should "expand tilde in path" do
      # The assert_equal fails for some reason, == might not be right...
      # assert_equal "#{ENV['HOME']}/Documents", @string.stringByExpandingTildeInPath
      assert @string.stringByExpandingTildeInPath.isEqualToString("#{ENV['HOME']}/Documents")
    end
  end
end

