Sha256: 12d209ed1f74438be5263ef1883b2ef5be70028b02a89674cfb824986d72a929

Contents?: true

Size: 186 Bytes

Versions: 40

Compression:

Stored size: 186 Bytes

Contents

prepend Actions

on '**' do |request, path|
	# puts "**: #{URI_PATH.inspect}"
	
	if path.include? 'foo'
		# This should ALWAYS give /redirect
		succeed! content: URI_PATH.to_s
	end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
utopia-2.11.1 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.11.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.10.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.9.5 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.9.3 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.9.2 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.9.1 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.9.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.8.2 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.8.1 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.8.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.7.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.6.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.5.5 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.5.4 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.5.3 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.5.1 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.5.0 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.4.1 spec/utopia/controller/middleware_spec/redirect/controller.rb
utopia-2.4.0 spec/utopia/controller/middleware_spec/redirect/controller.rb