Sha256: 73988276f2a83c05dc1661468fa067917e10aee3f79ce5a6daea7eb727931325
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
%w{ rack/test murlsh }.each { |m| require m } describe Murlsh::Dispatch do include Rack::Test::Methods def app config = YAML.load_file('config.yaml') Murlsh::Dispatch.new(config) end it 'should return ok for GET /' do get '/' last_response.should be_ok end it 'should return 404 for an invalid request' do get '/foo' last_response.should_not be_ok end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
murlsh-1.0.0 | spec/dispatch_spec.rb |
murlsh-0.11.0 | spec/dispatch_spec.rb |
murlsh-0.10.0 | spec/dispatch_spec.rb |