summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2015-01-27 01:41:12 -0800
committerRyan Davis <ryand@zenspider.com>2015-01-27 01:41:12 -0800
commitc24dc9b10a24cc6c78ebb1f2ccb9a2129dd83a42 (patch)
tree753d16882ed762956ba9b0f106959f7653314347 /test
parent3c6bdcdbe46426545334762d0b1cd0c6ecb6ecf1 (diff)
downloadhoe-c24dc9b10a24cc6c78ebb1f2ccb9a2129dd83a42.tar.gz
normalized %-formatted tokens
[git-p4: depot-paths = "//src/hoe/dev/": change = 9955]
Diffstat (limited to 'test')
-rw-r--r--test/test_hoe.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_hoe.rb b/test/test_hoe.rb
index bc0c2fc..2d4f3bc 100644
--- a/test/test_hoe.rb
+++ b/test/test_hoe.rb
@@ -292,7 +292,7 @@ class TestHoe < Minitest::Test
def test_license
spec = self.hoe.spec
- assert_equal %w(MIT), spec.licenses
+ assert_equal %w[MIT], spec.licenses
end
def test_multiple_calls_to_license
@@ -303,7 +303,7 @@ class TestHoe < Minitest::Test
spec = hoe.spec
- assert_equal %w(MIT GPL-2), spec.licenses
+ assert_equal %w[MIT GPL-2], spec.licenses
end
def test_setting_licenses
@@ -313,7 +313,7 @@ class TestHoe < Minitest::Test
spec = hoe.spec
- assert_equal %w(MIT GPL-2), spec.licenses
+ assert_equal %w[MIT GPL-2], spec.licenses
end
def test_plugins
@@ -335,12 +335,12 @@ class TestHoe < Minitest::Test
def test_rename
# project, file_name, klass, test_klass = Hoe.normalize_names 'project_name'
- assert_equal %w( word word Word TestWord), Hoe.normalize_names("word")
- assert_equal %w( word word Word TestWord), Hoe.normalize_names("Word")
- assert_equal %w(two_words two_words TwoWords TestTwoWords), Hoe.normalize_names("TwoWords")
- assert_equal %w(two_words two_words TwoWords TestTwoWords), Hoe.normalize_names("twoWords")
- assert_equal %w(two-words two/words Two::Words TestTwo::TestWords), Hoe.normalize_names("two-words")
- assert_equal %w(two_words two_words TwoWords TestTwoWords), Hoe.normalize_names("two_words")
+ assert_equal %w[word word Word TestWord], Hoe.normalize_names("word")
+ assert_equal %w[word word Word TestWord], Hoe.normalize_names("Word")
+ assert_equal %w[two_words two_words TwoWords TestTwoWords], Hoe.normalize_names("TwoWords")
+ assert_equal %w[two_words two_words TwoWords TestTwoWords], Hoe.normalize_names("twoWords")
+ assert_equal %w[two-words two/words Two::Words TestTwo::TestWords], Hoe.normalize_names("two-words")
+ assert_equal %w[two_words two_words TwoWords TestTwoWords], Hoe.normalize_names("two_words")
end
def test_nosudo