test/support/name_set.rb in ggem-1.8.4 vs test/support/name_set.rb in ggem-1.9.0
- old
+ new
@@ -3,24 +3,27 @@
class Base
attr_reader :variations, :name, :module_name, :ruby_name
def expected_folders
- [ '',
- 'lib',
+ [ "",
+ ".circleci",
+ "lib",
"lib/#{@ruby_name}",
- 'test',
- 'test/support',
- 'test/system',
- 'test/unit',
- 'log',
- 'tmp'
+ "test",
+ "test/support",
+ "test/system",
+ "test/unit",
+ "log",
+ "tmp"
]
end
def expected_files
- [ ".gitignore",
+ [ ".circleci/config.yml",
+
+ ".gitignore",
"Gemfile",
"#{@name}.gemspec",
"README.md",
"LICENSE",
@@ -29,38 +32,40 @@
"test/helper.rb",
"test/support/factory.rb",
"log/.gitkeep",
+ "test/system/.gitkeep",
+ "test/unit/.gitkeep",
"tmp/.gitkeep",
]
end
end
class Simple < Base
def initialize
- @variations = ['simple']
- @name = 'simple'
- @module_name = 'Simple'
- @ruby_name = 'simple'
+ @variations = ["simple"]
+ @name = "simple"
+ @module_name = "Simple"
+ @ruby_name = "simple"
end
end
class Underscored < Base
def initialize
- @variations = ['my_gem', 'my__gem', 'MyGem', 'myGem', 'My_Gem']
- @name = 'my_gem'
- @module_name = 'MyGem'
- @ruby_name = 'my_gem'
+ @variations = ["my_gem", "my__gem", "MyGem", "myGem", "My_Gem"]
+ @name = "my_gem"
+ @module_name = "MyGem"
+ @ruby_name = "my_gem"
end
end
class HyphenatedOther < Base
def initialize
- @variations = ['my-gem']
- @name = 'my-gem'
- @module_name = 'MyGem'
- @ruby_name = 'my-gem'
+ @variations = ["my-gem"]
+ @name = "my-gem"
+ @module_name = "MyGem"
+ @ruby_name = "my-gem"
end
end
end
end