# 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