Sha256: 6b0511803b9e38631f4ffbb0059d1d30f7d30497fe7b0cd26e26cad9855fd7ec

Contents?: true

Size: 317 Bytes

Versions: 13

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

prepend Actions

on 'flat' do
	succeed! content: "flat"
end

on '**/hello-world' do
	succeed! content: @hello_world
end

on '**' do
	@hello_world = "Hello World"
end

on 'ignore' do
	ignore!
end

on 'redirect' do
	redirect! 'bar'
end

on 'index' do
	succeed! content: 'Hello World'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
utopia-2.15.1 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.15.0 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.14.0 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.13.4 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.13.3 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.13.2 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.13.1 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.13.0 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.12.4 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.12.3 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.12.2 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.12.1 spec/utopia/controller/middleware_spec/controller/controller.rb
utopia-2.12.0 spec/utopia/controller/middleware_spec/controller/controller.rb