Sha256: dae3168b6e6c75fecb742bb4bb84ff5e5fd6a85c2d53776f06b4987c17e26d85

Contents?: true

Size: 709 Bytes

Versions: 10

Compression:

Stored size: 709 Bytes

Contents

require 'spec/helper'
require 'examples/basic/simple'

describe 'Simple' do
  behaves_like :mock

  def check(url)
    response = get(url)
    response.status.should == 200
    response.body
  end

  it '/' do
    check('/').should == 'simple'
  end

  it '/join/foo/bar' do
    check('/join/foo/bar').should == 'foobar'
  end

  it '/join/bar/baz' do
    check('/join/bar/baz').should == 'barbaz'
  end

  it '/join_all' do
    check('/join_all/a/b/c/d/e/f').should == 'abcdef'
  end

  it '/sum' do
    check('/sum/1/2').should == '3'
  end

  it '/post_or_get' do
    check('/post_or_get').should == 'GET'
  end

  it '/other' do
    check('/other').should == "Hello, World from OtherController"
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
Pistos-ramaze-2009.04.08 spec/examples/simple.rb
manveru-ramaze-2009.04.01 spec/examples/simple.rb
manveru-ramaze-2009.04.08 spec/examples/simple.rb
manveru-ramaze-2009.04.18 spec/examples/simple.rb
manveru-ramaze-2009.04.22 spec/examples/simple.rb
manveru-ramaze-2009.04 spec/examples/simple.rb
manveru-ramaze-2009.05.08 spec/examples/simple.rb
manveru-ramaze-2009.05 spec/examples/simple.rb
ramaze-2009.05 spec/examples/simple.rb
ramaze-2009.04 spec/examples/simple.rb