Sha256: 98e5ad7956d57bb5caeb55079e8d9ac86bbf036505cf9eb6c3c01bc1e9154b49

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

require 'assert'
require 'romo-av'

module Romo::Av

  class UnitTests < Assert::Context
    desc "Romo::Av"
    subject{ Romo::Av }

    should have_imeths :gem_assets_path

    should "know its assets path based on the gem's path" do
      spec = Gem::Specification.find_by_name('romo-av', Romo::Av::VERSION)
      expected = File.join(spec.gem_dir, 'assets')

      assert_equal expected, subject.gem_assets_path.to_s
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
romo-av-0.2.0 test/unit/romo-av_tests.rb
romo-av-0.1.6 test/unit/romo-av_tests.rb
romo-av-0.1.5 test/unit/romo-av_tests.rb
romo-av-0.1.4 test/unit/romo-av_tests.rb
romo-av-0.1.3 test/unit/romo-av_tests.rb
romo-av-0.1.2 test/unit/romo-av_tests.rb
romo-av-0.1.1 test/unit/romo-av_tests.rb
romo-av-0.1.0 test/unit/romo-av_tests.rb