reagent-simple-gem 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module SimpleGem
30
30
  generate_file('Rakefile.erb', 'Rakefile')
31
31
  generate_file('README.markdown.erb', 'README.markdown')
32
32
  generate_file('test_helper.rb.erb', 'test/test_helper.rb')
33
- generate_file('test.rb.erb', "test/#{self.ruby_name}/#{self.ruby_name}_test.rb")
33
+ generate_file('test.rb.erb', "test/unit/#{self.ruby_name}_test.rb")
34
34
  end
35
35
 
36
36
  private
@@ -43,7 +43,7 @@ module SimpleGem
43
43
  end
44
44
 
45
45
  def generate_subdirectories
46
- ['lib', 'test', "lib/#{self.ruby_name}", "test/#{self.ruby_name}"].each do |dir|
46
+ ['lib', 'test', "lib/#{self.ruby_name}", 'test/unit'].each do |dir|
47
47
  FileUtils.mkdir("#{self.root_path}/#{self.name}/#{dir}")
48
48
  end
49
49
  end
@@ -3,7 +3,7 @@ module SimpleGem
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, TINY].join('.')
@@ -71,7 +71,7 @@ module SimpleGem
71
71
  File.exist?("#{@tmp_dir}/#{@name}").should == true
72
72
  end
73
73
 
74
- %w(lib test lib/simple_gem test/simple_gem).each do |dir|
74
+ %w(lib test lib/simple_gem test/unit).each do |dir|
75
75
  it "should create the #{dir} subdirectory" do
76
76
  File.exist?("#{@tmp_dir}/#{@name}/#{dir}").should == true
77
77
  end
@@ -98,7 +98,7 @@ module SimpleGem
98
98
  end
99
99
 
100
100
  it "should generate the test file" do
101
- File.exist?("#{@tmp_dir}/#{@name}/test/simple_gem/simple_gem_test.rb").should == true
101
+ File.exist?("#{@tmp_dir}/#{@name}/test/unit/simple_gem_test.rb").should == true
102
102
  end
103
103
 
104
104
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reagent-simple-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Reagan