Sha256: 2f28c45f6a6bb86d13f3bb691f82f0f5ae4c0ca1f51a138f04825f66aaa5a8a7

Contents?: true

Size: 456 Bytes

Versions: 22

Compression:

Stored size: 456 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class OSXSystemTest < Test::Unit::TestCase
  include SproutTestCase

  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

22 entries across 22 versions & 1 rubygems

Version Path
sprout-1.0.26.pre test/unit/osx_system_test.rb
sprout-1.0.25.pre test/unit/osx_system_test.rb
sprout-1.0.24.pre test/unit/osx_system_test.rb
sprout-1.0.23.pre test/unit/osx_system_test.rb
sprout-1.0.22.pre test/unit/osx_system_test.rb
sprout-1.0.20.pre test/unit/osx_system_test.rb
sprout-1.0.19.pre test/unit/osx_system_test.rb
sprout-1.0.18.pre test/unit/osx_system_test.rb
sprout-1.0.17.pre test/unit/osx_system_test.rb
sprout-1.0.16.pre test/unit/osx_system_test.rb
sprout-1.0.15.pre test/unit/osx_system_test.rb
sprout-1.0.14.pre test/unit/osx_system_test.rb
sprout-1.0.13.pre test/unit/osx_system_test.rb
sprout-1.0.11.pre test/unit/osx_system_test.rb
sprout-1.0.9.pre test/unit/osx_system_test.rb
sprout-1.0.8.pre test/unit/osx_system_test.rb
sprout-1.0.5.pre test/unit/osx_system_test.rb
sprout-1.0.4.pre test/unit/osx_system_test.rb
sprout-1.0.3.pre test/unit/osx_system_test.rb
sprout-1.0.2.pre test/unit/osx_system_test.rb