lib/generators/controller/templates/controller_action_spec.erb in hexx-1.0.2 vs lib/generators/controller/templates/controller_action_spec.erb in hexx-1.1.0
- old
+ new
@@ -1,22 +1,21 @@
+ # describe "#<%= action_name %>" do
- # describe "#<%= action_name %>" do
+ # let!(:params) { { "something" => "something", "wrong" => "wrong" } }
- # let!(:params) { { "something" => "something", "wrong" => "wrong" } }
+ # before { allow(<%= use_case %>).to receive(:new).and_return(use_case) }
+ # after { <%= action_type %> :<%= action_name %>, params }
- # 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 "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 "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
+ # it "runs the case after subscribtions" do
+ # expect(use_case).to run_after_subscriptions
+ # end
+ # end
\ No newline at end of file