Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Fixes #15107 - Rails 4.2 test breakages
Browse files Browse the repository at this point in the history
url_for in the new Rails carries some parameters that can break the link
creation. Additionally I've disabled ruby warnings in the rake test task.
  • Loading branch information
dLobatog committed May 20, 2016
1 parent c1cbf3b commit d987e11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/containers/steps/preliminary.html.erb
Expand Up @@ -21,8 +21,9 @@
<hr>
<%= select_f f, 'compute_resource_id', @container_resources, :id, :to_label, {}, { :label => _('Deploy on') } %>
<% else %>

<div class="alert alert-warning alert-dismissable">
<%= image_tag 'false.png' %> <%= (_("You need a Docker compute resource in order to create containers. Please %s and try again.") % link_to('add a new one', hash_for_new_compute_resource_path)).html_safe %>
<%= image_tag 'false.png' %> <%= (_("You need a Docker compute resource in order to create containers. Please %s and try again.") % link_to('add a new one', new_compute_resource_path)).html_safe %>
</div>
<% end %>
</div>
Expand Down
1 change: 1 addition & 0 deletions lib/foreman_docker/tasks/test.rake
Expand Up @@ -8,6 +8,7 @@ namespace :test do
"#{ForemanDocker::Engine.root}/test/**/*_test.rb"
]
t.verbose = true
t.warning = false
end

Rake::Task[test_task.name].invoke
Expand Down

0 comments on commit d987e11

Please sign in to comment.