test/test_lookup.rb in rubigen-1.0.2 vs test/test_lookup.rb in rubigen-1.0.3

- old
+ new

@@ -53,21 +53,21 @@ assert_equal("", source.send(:filter_str)) end def test_scoped_gem_path source = GemPathSource.new("rubygems") - assert_equal("{rubygems_}", source.send(:filter_str)) + assert_equal("{rubygems_,}", source.send(:filter_str)) end def test_alternate_scoped_gem_path source = GemPathSource.new(:rubygems, :ruby) - assert_equal("{rubygems_,ruby_}", source.send(:filter_str)) + assert_equal("{rubygems_,ruby_,}", source.send(:filter_str)) end def test_scoped_gem_path_using_array source = GemPathSource.new([:rubygems, :ruby]) - assert_equal("{rubygems_,ruby_}", source.send(:filter_str)) + assert_equal("{rubygems_,ruby_,}", source.send(:filter_str)) end def test_use_component_sources_without_scope Base.use_component_sources! gem_path_source = Base.sources.find { |source| source.is_a?(GemPathSource) } @@ -77,14 +77,14 @@ def test_use_component_sources_with_scope Base.use_component_sources! :rubygems, :ruby gem_path_source = Base.sources.find { |source| source.is_a?(GemPathSource) } assert_not_nil(gem_path_source, "Where is the GemPathSource?") - assert_equal("{rubygems_,ruby_}", gem_path_source.send(:filter_str)) + assert_equal("{rubygems_,ruby_,}", gem_path_source.send(:filter_str)) user_path_source = Base.sources.find { |source| source.is_a?(PathFilteredSource) } assert_not_nil(user_path_source, "Where is the PathFilteredSource?") - assert_match(/\.rubigen\/\{rubygems_,ruby_\}generators/, user_path_source.path) + assert_match(/\.rubigen\/\{rubygems_,ruby_,\}generators/, user_path_source.path) end def test_use_application_sources Base.use_application_sources! expected_path = File.expand_path(File.join(File.dirname(__FILE__), %w[.. app_generators])) @@ -97,11 +97,11 @@ def test_use_application_sources_with_scope Base.use_application_sources! :rubygems, :newgem gem_path_source = Base.sources.find { |source| source.is_a?(GemPathSource) } assert_not_nil(gem_path_source, "Where is the GemPathSource?") - assert_equal("{app_,rubygems_,newgem_}", gem_path_source.send(:filter_str)) + assert_equal("{app_,rubygems_,newgem_,}", gem_path_source.send(:filter_str)) user_path_source = Base.sources.find { |source| source.is_a?(PathFilteredSource) } assert_not_nil(user_path_source, "Where is the PathFilteredSource?") - assert_match(/\.rubigen\/\{app_,rubygems_,newgem_\}generators/, user_path_source.path) + assert_match(/\.rubigen\/\{app_,rubygems_,newgem_,\}generators/, user_path_source.path) end end \ No newline at end of file