jmettraux / rufus-verbs

GET, POST, PUT, DELETE, with something around (ruby)

This URL has Read+Write access

rufus-verbs / test / https_test.rb
100644 40 lines (28 sloc) 0.553 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Testing rufus-verbs
#
# jmettraux@gmail.com
#
# Mon Jan 14 00:07:38 JST 2008
#
 
require File.dirname(__FILE__) + '/base.rb'
 
 
class HttpsTest < Test::Unit::TestCase
  include TestBaseMixin
 
  include Rufus::Verbs
 
  def setup
    # no need for an items server
  end
 
  def teardown
  end
 
  def test_0
 
    res = expect(
      200,
      nil,
      get(:uri => "https://jmettraux.wordpress.com/2006/03/31/cvs-down/"))
 
    #res.each_header do |h|
    # p h
    #end
 
    #puts res.body
    assert res.body.match "^<!DOCTYPE html PUBLIC"
  end
end