mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	[core] Fix responds_to test helper.
As per discussion on #305. Also clean up output for parser test.
This commit is contained in:
		
							parent
							
								
									682bd0d831
								
							
						
					
					
						commit
						0e5ed656c3
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -59,7 +59,7 @@ posuere eu odio. Donec sodales, ante porta condimentum
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tests('TestParser').returns(@response) do
 | 
					  tests('TestParser').returns(@response, "returns the response") do
 | 
				
			||||||
    test_parser = TestParser.new
 | 
					    test_parser = TestParser.new
 | 
				
			||||||
    Nokogiri::XML::SAX::Parser.new(test_parser).parse(@xml)
 | 
					    Nokogiri::XML::SAX::Parser.new(test_parser).parse(@xml)
 | 
				
			||||||
    test_parser.response
 | 
					    test_parser.response
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,11 +3,11 @@ module Shindo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def responds_to(method_names)
 | 
					    def responds_to(method_names)
 | 
				
			||||||
      for method_name in [*method_names]
 | 
					      for method_name in [*method_names]
 | 
				
			||||||
        tests("#respond_to?(:#{method_name})").succeeds do
 | 
					        tests("#respond_to?(:#{method_name})").returns(true) do
 | 
				
			||||||
          @instance.respond_to?(method_name)
 | 
					          @instance.respond_to?(method_name)
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue