Permalink
Browse files

Additional top level actions:

* allowing for Rails logger in specs as well
  • Loading branch information...
1 parent 1a07274 commit 183b317eeeb1d0bd1332e4b07ba1c2523bd77c3a @elvanja committed Mar 6, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −1 app/helpers/deckhand/normalize_params.rb
  2. +0 −1 spec/helpers/normalize_params_spec.rb
@@ -13,7 +13,7 @@ def normalize_params
params.merge! non_file_params
params.delete :non_file_params
- #Rails.logger.debug " Normalized parameters: #{params.inspect}"
+ Rails.logger.debug "Normalized parameters: #{params.inspect}" if defined? Rails
end
private
@@ -61,7 +61,6 @@ class Deckhand::DummyController
it "takes care of files in group" do
params[:form] = {"content.file" => "image.jpg"}
controller.normalize_params
- puts params
expect(params["form"]["content"]).to eq({"title"=>"Title", "file"=>"image.jpg"})
end
end

0 comments on commit 183b317

Please sign in to comment.