Sha256: b284fcc0bff8e5916e9caa75c355672dc93ea2f8c26b483d65e0a836fdf8fe57
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' require_relative '../../../../<%= config[:view_path] %>' describe <%= config[:app] %>::Views::<%= config[:controller] %>::<%= config[:action] %> do let(:exposures) { Hash[foo: 'bar'] } let(:template) { Lotus::View::Template.new('<%= config[:template_path] %>') } let(:view) { <%= config[:app] %>::Views::<%= config[:controller] %>::<%= config[:action] %>.new(template, exposures) } it "exposes #foo" do expect(view.foo).to eq exposures.fetch(:foo) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lotusrb-0.3.2 | lib/lotus/generators/action/view_spec.rspec.tt |
lotusrb-0.3.1 | lib/lotus/generators/action/view_spec.rspec.tt |
lotusrb-0.3.0 | lib/lotus/generators/action/view_spec.rspec.tt |