Sha256: 6605cc48d57d6bb4848f6eee78622585b3df0df0eb01fccd8020d5d68ca62cd4

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

require 'test_helper'

module Lagunitas
  class AppTest < TestCase
    def setup
      @ipa = Lagunitas::IPA.new('test/data/Sample.ipa')
      @app = @ipa.app
    end

    def test_identifier
      assert_equal 'com.samsoffes.Sample', @app.identifier
    end

    def test_display_name
      assert_equal 'Sample', @app.display_name
    end

    def test_version
      assert_equal '13', @app.version
    end

    def test_short_version
      assert_equal '2.2', @app.short_version
    end

    def test_icons
      assert_includes @app.icon(120), 'AppIcon60x60@2x.png'
      assert_nil @app.icon(1024)
    end

    def teardown
      @ipa.cleanup if @ipa
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lagunitas-0.0.2 test/lagunitas/app_test.rb
lagunitas-0.0.1 test/lagunitas/app_test.rb