Sha256: 0ec0749232aa939bc5bf48b5c97d50f6be462c7de4cf3aa32d5faed4c3d8619b

Contents?: true

Size: 216 Bytes

Versions: 15

Compression:

Stored size: 216 Bytes

Contents

# frozen_string_literal: true

module Phlex
	module Testing
		module ViewHelper
			def render(view, &block)
				view.call(view_context: view_context, &block)
			end

			def view_context
				nil
			end
		end
	end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
phlex-1.0.1 lib/phlex/testing/view_helper.rb
phlex-1.1.1 lib/phlex/testing/view_helper.rb
phlex-1.2.2 lib/phlex/testing/view_helper.rb
phlex-1.3.1 lib/phlex/testing/view_helper.rb
phlex-1.3.0 lib/phlex/testing/view_helper.rb
phlex-1.2.1 lib/phlex/testing/view_helper.rb
phlex-1.2.0 lib/phlex/testing/view_helper.rb
phlex-1.1.0 lib/phlex/testing/view_helper.rb
phlex-1.0.0 lib/phlex/testing/view_helper.rb
phlex-1.0.0.rc2 lib/phlex/testing/view_helper.rb
phlex-1.0.0.rc1 lib/phlex/testing/view_helper.rb
phlex-0.5.3 lib/phlex/testing/view_helper.rb
phlex-0.5.2 lib/phlex/testing/view_helper.rb
phlex-0.5.1 lib/phlex/testing/view_helper.rb
phlex-0.5.0 lib/phlex/testing/view_helper.rb