Sha256: 3ee6c591a58e831ade9a127547fed6a8b86c0de65bee945f1cd2d4405285c4fd

Contents?: true

Size: 419 Bytes

Versions: 62

Compression:

Stored size: 419 Bytes

Contents

require 'assert'
require 'romo'

module Romo

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

    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', Romo::VERSION)
      expected = File.join(spec.gem_dir, 'assets')

      assert_equal expected, subject.gem_assets_path.to_s
    end

  end

end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
romo-0.20.13 test/unit/romo_tests.rb
romo-0.20.12 test/unit/romo_tests.rb
romo-0.20.11 test/unit/romo_tests.rb
romo-0.20.10 test/unit/romo_tests.rb
romo-0.20.9 test/unit/romo_tests.rb
romo-0.20.8 test/unit/romo_tests.rb
romo-0.20.7 test/unit/romo_tests.rb
romo-0.20.6 test/unit/romo_tests.rb
romo-0.20.5 test/unit/romo_tests.rb
romo-0.20.4 test/unit/romo_tests.rb
romo-0.20.3 test/unit/romo_tests.rb
romo-0.20.2 test/unit/romo_tests.rb
romo-0.20.1 test/unit/romo_tests.rb
romo-0.20.0 test/unit/romo_tests.rb
romo-0.19.10 test/unit/romo_tests.rb
romo-0.19.9 test/unit/romo_tests.rb
romo-0.19.8 test/unit/romo_tests.rb
romo-0.19.7 test/unit/romo_tests.rb
romo-0.19.6 test/unit/romo_tests.rb
romo-0.19.5 test/unit/romo_tests.rb