Sha256: a892daeb9a66c745edcb0e3592c94cdcaa278edff1d8e45f1260fc56f0cfa343
Contents?: true
Size: 959 Bytes
Versions: 2
Compression:
Stored size: 959 Bytes
Contents
require 'spec/helper' require 'examples/simple' describe 'Simple' do ramaze after :each do @response.status.should == 200 end it '/' do @response = get('/') @response.body.should == 'simple' end it '/simple' do @response = get('/simple') @response.body.should =~ /^#<Ramaze::Request/ end it '/join/foo/bar' do @response = get('/join/foo/bar') @response.body.should == 'foobar' end it '/join/bar/baz' do @response = get('/join/bar/baz') @response.body.should == 'barbaz' end it '/join_all' do @response = get('/join_all/a/b/c/d/e/f') @response.body.should == 'abcdef' end it '/sum' do @response = get('/sum/1/2') @response.body.should == '3' end it '/post_or_get' do @response = get('/post_or_get') @response.body.should == 'GET' end it '/other' do @response = get('/other') @response.body.should == "Hello, World from OtherController" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.2.0 | spec/examples/simple.rb |
ramaze-0.2.1 | spec/examples/simple.rb |