Sha256: 15f6a3aaf6520bd05b4b7edf3e8b31bf3ed55f4862d4253afe61ecb0da2b993f
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require 'spec_helper' require_relative '<%= config[:relative_action_path] %>' describe <%= config[:app] %>::Controllers::<%= config[:controller] %>::<%= config[:action] %> do let(:action) { <%= config[:app] %>::Controllers::<%= config[:controller] %>::<%= config[:action] %>.new } let(:params) { Hash[] } it "is successful" do response = action.call(params) expect(response[0]).to eq 200 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lotusrb-0.4.1 | lib/lotus/generators/action/action_spec.rspec.tt |
lotusrb-0.4.0 | lib/lotus/generators/action/action_spec.rspec.tt |