Sha256: 58092b09b5c67a76ae16b93df2ef93018184755114ad4d9a9969b4fef32567c8
Contents?: true
Size: 730 Bytes
Versions: 1
Compression:
Stored size: 730 Bytes
Contents
# describe "#<%= action_name %>" do # let!(:params) { { "something" => "something", "wrong" => "wrong" } } # before { allow(<%= use_case %>).to receive(:new).and_return(use_case) } # after { <%= action_type %> :<%= action_name %>, params } # it "provides a use case with proper parameters" do # expect(<%= use_case %>).to receive(:new).with(params.slice("something")) # end # it "listens to use case" do # expect(controller).to listen_to use_case # end # it "runs the case after subscribtion" do # expect(use_case).to run_after_subscription # end # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hexx-0.1.0 | lib/generators/controller/templates/controller_action_spec.erb |