Skip to content
This repository
Browse code

Test for imposed version number as last part of gem directory name fo…

…r frozen gems

[#4295 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit f2990620d716146064d9d2f88ac487025d4b031a 1 parent 17f2fb4
Colin Casey colincasey authored josevalim committed
8 railties/test/gem_dependency_test.rb
@@ -113,6 +113,14 @@ def test_gem_load_frozen_minimum_version
113 113 assert_not_nil DUMMY_GEM_C_VERSION
114 114 assert_equal '0.6.0', DUMMY_GEM_C_VERSION
115 115 end
  116 +
  117 + def test_gem_load_frozen_when_platform_string_is_present
  118 + dummy_gem = Rails::GemDependency.new "dummy-gem-l"
  119 + dummy_gem.add_load_paths
  120 + dummy_gem.load
  121 + assert_not_nil DUMMY_GEM_L_VERSION
  122 + assert_equal "1.0.0", DUMMY_GEM_L_VERSION
  123 + end
116 124
117 125 def test_gem_load_missing_specification
118 126 dummy_gem = Rails::GemDependency.new "dummy-gem-d"
28 railties/test/vendor/gems/dummy-gem-l-1.0.0-x86-mswin32/.specification
... ... @@ -0,0 +1,28 @@
  1 +--- !ruby/object:Gem::Specification
  2 +name: dummy-gem-l
  3 +version: !ruby/object:Gem::Version
  4 + version: 1.0.0
  5 +platform: mswin32
  6 +authors:
  7 +- "Nobody"
  8 +date: 2008-10-03 00:00:00 -04:00
  9 +files:
  10 +- lib
  11 +- lib/dummy-gem-l.rb
  12 +require_paths:
  13 +- lib
  14 +required_ruby_version: !ruby/object:Gem::Requirement
  15 + requirements:
  16 + - - ">="
  17 + - !ruby/object:Gem::Version
  18 + version: "0"
  19 + version:
  20 +required_rubygems_version: !ruby/object:Gem::Requirement
  21 + requirements:
  22 + - - ">="
  23 + - !ruby/object:Gem::Version
  24 + version: "0"
  25 + version:
  26 +requirements: []
  27 +specification_version: 2
  28 +summary: Dummy Gem L
1  railties/test/vendor/gems/dummy-gem-l-1.0.0-x86-mswin32/lib/dummy-gem-l.rb
... ... @@ -0,0 +1 @@
  1 +DUMMY_GEM_L_VERSION="1.0.0"

0 comments on commit f299062

Please sign in to comment.
Something went wrong with that request. Please try again.