Sha256: e0c4396c6f73051f89809bd2aa7dd5c6a8e6609ead3fdbb84ad91e5afca11bab

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

# encoding: UTF-8
require 'simplecov' and SimpleCov.start do
	add_filter "spec/"
	add_filter "lib/mojito/utils/rspec.rb"
end
require 'mojito'
require 'mojito/utils/rspec'

describe ::Rack::Request do
	
	subject do
		Mojito::C.runtime_controller Mojito::Rendering::Content do
			write request.GET[:hello]
			halt!
		end.mock_request
	end
	
	it { subject.get('/?hello=world').status.should == 200 }
	it { subject.get('/?hello=world').body.should == 'world' }
	
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mojito-0.2.6 spec/mojito/request_extensions_spec.rb
mojito-0.2.5 spec/mojito/request_extensions_spec.rb
mojito-0.2.4 spec/mojito/request_extensions_spec.rb
mojito-0.2.3 spec/mojito/request_extensions_spec.rb