mirror of
				https://github.com/sinatra/sinatra
				synced 2023-03-27 23:18:01 -04:00 
			
		
		
		
	on 1.8 Test::Unit does not allow test classes without tests
This commit is contained in:
		
							parent
							
								
									26703870b0
								
							
						
					
					
						commit
						7230657c24
					
				
					 1 changed files with 4 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -2,12 +2,10 @@
 | 
			
		|||
require File.dirname(__FILE__) + '/helper'
 | 
			
		||||
 | 
			
		||||
class ReadmeTest < Test::Unit::TestCase
 | 
			
		||||
  section "Sinatra" do
 | 
			
		||||
    example do
 | 
			
		||||
      mock_app { get('/') { 'Hello world!' } }
 | 
			
		||||
      get '/'
 | 
			
		||||
      assert_body 'Hello world!'
 | 
			
		||||
    end
 | 
			
		||||
  example do
 | 
			
		||||
    mock_app { get('/') { 'Hello world!' } }
 | 
			
		||||
    get '/'
 | 
			
		||||
    assert_body 'Hello world!'
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  section "Routes" do
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue