Sha256: a92943c6d361e7fdacb6b511a8d31fd6f39152de62b620e2c286b77b0dc871a0

Contents?: true

Size: 734 Bytes

Versions: 7

Compression:

Stored size: 734 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

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

  context "A Trust instance" do

    setup do
      @fixture      = File.join fixtures, 'trust'
      @file         = File.join @fixture, 'trust.cfg'
      @project      = File.join fixtures, 'SomeProject'
      @trust        = FlashPlayer::Trust.new
      @trust.logger = StringIO.new
      @trust.stubs(:trust_file).returns @file
    end

    teardown do
      remove_file @fixture
    end

    should "create and update trust config with provided path" do
      @trust.add @project

      assert_file @file do |content|
        assert_matches File.expand_path(@project), content
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
flashsdk-1.0.12.pre test/unit/flashplayer_trust_test.rb
flashsdk-1.0.5.pre test/unit/trust_test.rb
flashsdk-1.0.1.pre test/unit/trust_test.rb
flashplayer-10.1.9.pre test/unit/trust_test.rb
flashplayer-10.1.8.pre test/unit/trust_test.rb
flashplayer-10.1.7.pre test/unit/trust_test.rb
flashplayer-10.1.6.pre test/unit/trust_test.rb