spec_producer 0.5.0 → 0.6.0
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.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +5 -0
 - data/lib/spec_producer.rb +5 -5
 - data/lib/spec_producer/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6e7e34624e59e659c2379b4dae35d243354ed18e
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 18a8a15034a4c863e8f87df51fb30e623e1b4a63
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6a2b462c791110af7912cbbf9793b347c967d09dc3a458cb38e78a0f4a9091a8ffdc9697aa91551567e269bc98a6cf1e4546b68f9b90efbec7a41c8a60145447
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 01e8f75d840c1c9f3928b208d3c018370f77db0cf305eee3ff76f4b9bd98c587f2e4b0d92f559817e69593f3bb8528aac149f494ac13de7e1443b9a19841b761
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/lib/spec_producer.rb
    CHANGED
    
    | 
         @@ -16,7 +16,7 @@ module SpecProducer 
     | 
|
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
                ActiveRecord::Base.descendants.each do |descendant|
         
     | 
| 
       18 
18 
     | 
    
         
             
                  final_text = "require 'rails_helper'\n\n"
         
     | 
| 
       19 
     | 
    
         
            -
                  final_text << "describe #{descendant.name} do\n"
         
     | 
| 
      
 19 
     | 
    
         
            +
                  final_text << "describe #{descendant.name}, :type => :model do\n"
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
                  descendant.attribute_names.each do |attribute|
         
     | 
| 
       22 
22 
     | 
    
         
             
                    final_text << "  it { should respond_to :#{attribute}, :#{attribute}= }\n"
         
     | 
| 
         @@ -129,7 +129,7 @@ module SpecProducer 
     | 
|
| 
       129 
129 
     | 
    
         | 
| 
       130 
130 
     | 
    
         
             
                routes.group_by { |route| route[:controller] }.each do |route_group|
         
     | 
| 
       131 
131 
     | 
    
         
             
                  final_text = "require 'rails_helper'\n\n"
         
     | 
| 
       132 
     | 
    
         
            -
                  final_text << "describe '#{route_group[0]} routes' do\n"
         
     | 
| 
      
 132 
     | 
    
         
            +
                  final_text << "describe '#{route_group[0]} routes', :type => :routing do\n"
         
     | 
| 
       133 
133 
     | 
    
         | 
| 
       134 
134 
     | 
    
         
             
                  route_group[1].each do |route|
         
     | 
| 
       135 
135 
     | 
    
         
             
                    final_text << "  it \"#{route[:verb].upcase} #{route[:path]} should route to '#{route[:controller]}##{route[:action]}'\" do\n"
         
     | 
| 
         @@ -209,7 +209,7 @@ module SpecProducer 
     | 
|
| 
       209 
209 
     | 
    
         | 
| 
       210 
210 
     | 
    
         
             
                  file_name = "#{file.gsub('app/', 'spec/')}_spec.rb"
         
     | 
| 
       211 
211 
     | 
    
         
             
                  final_text = "require 'rails_helper'\n\n"
         
     | 
| 
       212 
     | 
    
         
            -
                  final_text << "describe '#{file.gsub('app/views/', '')}' do\n"
         
     | 
| 
      
 212 
     | 
    
         
            +
                  final_text << "describe '#{file.gsub('app/views/', '')}', :type => :view do\n"
         
     | 
| 
       213 
213 
     | 
    
         
             
                  final_text << "  before do\n"
         
     | 
| 
       214 
214 
     | 
    
         
             
                  final_text << "    render\n"
         
     | 
| 
       215 
215 
     | 
    
         
             
                  final_text << "  end\n\n"
         
     | 
| 
         @@ -249,7 +249,7 @@ module SpecProducer 
     | 
|
| 
       249 
249 
     | 
    
         | 
| 
       250 
250 
     | 
    
         
             
                  file_name = "#{file.gsub('app/', 'spec/').gsub('.rb', '')}_spec.rb"
         
     | 
| 
       251 
251 
     | 
    
         
             
                  final_text = "require 'rails_helper'\n\n"
         
     | 
| 
       252 
     | 
    
         
            -
                  final_text << "describe #{File.basename(file, ".rb").camelcase} do\n"
         
     | 
| 
      
 252 
     | 
    
         
            +
                  final_text << "describe #{File.basename(file, ".rb").camelcase}, :type => :helper do\n"
         
     | 
| 
       253 
253 
     | 
    
         
             
                  final_text << "  pending 'view helper tests'\n"
         
     | 
| 
       254 
254 
     | 
    
         
             
                  final_text << "end"
         
     | 
| 
       255 
255 
     | 
    
         | 
| 
         @@ -293,7 +293,7 @@ module SpecProducer 
     | 
|
| 
       293 
293 
     | 
    
         | 
| 
       294 
294 
     | 
    
         
             
                  file_name = "#{path_name.gsub('app/', 'spec/')}_spec.rb"
         
     | 
| 
       295 
295 
     | 
    
         
             
                  final_text = "require 'rails_helper'\n\n"
         
     | 
| 
       296 
     | 
    
         
            -
                  final_text << "describe #{descendant.name} do\n"
         
     | 
| 
      
 296 
     | 
    
         
            +
                  final_text << "describe #{descendant.name}, :type => :controller do\n"
         
     | 
| 
       297 
297 
     | 
    
         | 
| 
       298 
298 
     | 
    
         
             
                  descendant.action_methods.each do |method|
         
     | 
| 
       299 
299 
     | 
    
         
             
                    final_text << "  pending '##{method}'\n"
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: spec_producer
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.6.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Vasilis Kalligas
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016-08- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-08-09 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     |