# 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 "sets use case with proper parameters" do # expect(<%= use_case %>).to receive(:new) # .with params.slice("something") # end # it "listens to the case" do # expect(controller).to listen_to use_case # end # it "runs the case after subscribtions" do # expect(use_case).to run_after_subscriptions # end # end