Skip to content

Instantly share code, notes, and snippets.

@cschneid
Created March 18, 2009 18:00
Show Gist options
  • Select an option

  • Save cschneid/81285 to your computer and use it in GitHub Desktop.

Select an option

Save cschneid/81285 to your computer and use it in GitHub Desktop.
get '/styles.css'
- assert_equal 200, @response.status
- assert !@response.body.empty?
+ assert_equal 200, response.status
+ assert !response.body.empty?
end
should 'have a homepage' do
get '/'
- assert_equal 200, @response.status
- assert @response.body =~ /Hello, world/
+ assert_equal 200, response.status
+ assert response.body =~ /Hello, world/
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment