contact_congress_parser 0.0.10 → 0.0.11
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/lib/contact_congress_parser/form.rb +3 -3
 - data/lib/contact_congress_parser/version.rb +1 -1
 - data/spec/action_spec.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a0577b4c77253e2e9e3994e632f06cfb588c1d15
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: d22e4b3714945c69f09c583ea877d2575eda64cb
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c25f858a07be0b444e49b788edf71b64155463bf947631a1d071837f82d671d16b77f917eb2223010f70bfdfb982728e637d60770019a9bb134da7a2b904974f
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 64873abea514451dbe812288452c3a0e2192827728546228b4050265c0f7963e4dfb5ca90715e62f3d33dd86fd5831c85e2b3f3460375b72a5e92b40afafc911
         
     | 
| 
         @@ -14,13 +14,13 @@ module ContactCongressParser 
     | 
|
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
              private
         
     | 
| 
       16 
16 
     | 
    
         
             
                def create_form(&block)
         
     | 
| 
       17 
     | 
    
         
            -
                  "Conformity::Form.new('#{ 
     | 
| 
      
 17 
     | 
    
         
            +
                  "Conformity::Form.new('#{base_url}') do" +
         
     | 
| 
       18 
18 
     | 
    
         
             
                  yield +
         
     | 
| 
       19 
19 
     | 
    
         
             
                  'end'
         
     | 
| 
       20 
20 
     | 
    
         
             
                end
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
     | 
    
         
            -
                def  
     | 
| 
       23 
     | 
    
         
            -
                  @ 
     | 
| 
      
 22 
     | 
    
         
            +
                def base_url
         
     | 
| 
      
 23 
     | 
    
         
            +
                  @base_url ||= URI.join(steps.first['visit'], "/")
         
     | 
| 
       24 
24 
     | 
    
         
             
                end
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
                def actions
         
     | 
    
        data/spec/action_spec.rb
    CHANGED
    
    | 
         @@ -18,7 +18,7 @@ describe Action do 
     | 
|
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
              describe '#to_s' do
         
     | 
| 
       20 
20 
     | 
    
         
             
                it 'is eval-able by conformity' do
         
     | 
| 
       21 
     | 
    
         
            -
                  form = Conformity::Form.new
         
     | 
| 
      
 21 
     | 
    
         
            +
                  form = Conformity::Form.new { }
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
       23 
23 
     | 
    
         
             
                  actions = Action.create_from_step(MULTI_ACT_STEP)
         
     | 
| 
       24 
24 
     | 
    
         
             
                  expect { actions.each { |action| form.send(:eval, action.to_s) } }.
         
     |