Sha256: ee66e23423551cf7f2ddb671560b717af7a92187431e1cad3e312d54533b3fbb

Contents?: true

Size: 434 Bytes

Versions: 13

Compression:

Stored size: 434 Bytes

Contents

require 'test_helper'

class OSXSystemTest < Test::Unit::TestCase
  include Sprout::TestHelper

  context "new osx system" do

    setup do
      @user = Sprout::System::OSXSystem.new
      @user.stubs(:home).returns '/Users/someone'
    end

    should "capitalize application name" do
      File.stubs(:exists?).returns true
      assert_equal '/Users/someone/Library/Sprouts', @user.application_home('sprouts')
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sprout-1.1.18.pre test/unit/osx_system_test.rb
sprout-1.1.17.pre test/unit/osx_system_test.rb
sprout-1.1.16.pre test/unit/osx_system_test.rb
sprout-1.1.15.pre test/unit/osx_system_test.rb
sprout-1.1.14.pre test/unit/osx_system_test.rb
sprout-1.1.13.pre test/unit/osx_system_test.rb
sprout-1.1.11.pre test/unit/osx_system_test.rb
sprout-1.1.10.pre test/unit/osx_system_test.rb
sprout-1.1.7.pre test/unit/osx_system_test.rb
sprout-1.1.5.pre test/unit/osx_system_test.rb
sprout-1.1.4.pre test/unit/osx_system_test.rb
sprout-1.1.3.pre test/unit/osx_system_test.rb
sprout-1.1.2.pre test/unit/osx_system_test.rb