test/system/ggem_tests.rb in ggem-1.8.4 vs test/system/ggem_tests.rb in ggem-1.9.0

- old
+ new

@@ -1,9 +1,9 @@ -require 'assert' -require 'ggem' +require "assert" +require "ggem" -require 'test/support/name_set' +require "test/support/name_set" module GGem class SystemTests < Assert::Context @@ -27,13 +27,13 @@ private def assert_gem_name_set(name_set) name_set.variations.each do |variation| the_gem = GGem::Gem.new(TMP_PATH, variation) - [:name, :module_name, :ruby_name].each do |name_type| - assert_equal name_set.send(name_type), the_gem.send(name_type) - end + assert_equal name_set.name, the_gem.name + assert_equal name_set.module_name, the_gem.module_name + assert_equal name_set.ruby_name, the_gem.ruby_name end end end @@ -62,10 +62,10 @@ folders = name_set.expected_folders files = name_set.expected_files paths = (folders + files).collect{ |p| File.join(TMP_PATH, name_set.name, p) } paths.flatten.each do |path| - assert File.exists?(path), "'#{path}' does not exist" + assert File.exists?(path), "`#{path}` does not exist" end end end