reagent-simple-gem 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/simple_gem/gem.rb +2 -2
 - data/lib/simple_gem/version.rb +1 -1
 - data/test/simple_gem/gem_test.rb +2 -2
 - metadata +1 -1
 
    
        data/lib/simple_gem/gem.rb
    CHANGED
    
    | 
         @@ -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} 
     | 
| 
      
 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}",  
     | 
| 
      
 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
         
     | 
    
        data/lib/simple_gem/version.rb
    CHANGED
    
    
    
        data/test/simple_gem/gem_test.rb
    CHANGED
    
    | 
         @@ -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/ 
     | 
| 
      
 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/ 
     | 
| 
      
 101 
     | 
    
         
            +
                      File.exist?("#{@tmp_dir}/#{@name}/test/unit/simple_gem_test.rb").should == true
         
     | 
| 
       102 
102 
     | 
    
         
             
                    end
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
104 
     | 
    
         
             
                  end
         
     |