Sha256: cc80bcd087b14663f496017dc47d9f0f9df76f9edd29b4a4103832ffc4fff3ba
Contents?: true
Size: 506 Bytes
Versions: 17
Compression:
Stored size: 506 Bytes
Contents
require 'test_helper' require 'camping' Camping.goes :Inline module Inline::Controllers class Index def get @world = "World" render :index end end class UserX def get(name) @name = name render :user end end end class Inline::Test < TestCase def test_inline get '/' assert_body "Hello World" get '/user/Bluebie' assert_body "My name is Bluebie" end end __END__ @@ index.erb Hello <%= @world %> @@ user.erb My name is <%= @name %>
Version data entries
17 entries across 17 versions & 1 rubygems