Skip to content

Commit

Permalink
Merge pull request #1627 from thedarkone/appl-helper
Browse files Browse the repository at this point in the history
Remove application_helper.rb from refinery/core
  • Loading branch information
ugisozols committed Apr 28, 2012
2 parents 8e560b2 + c33cf56 commit b4b5342
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions core/app/controllers/refinery/admin_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Refinery
class AdminController < ::ActionController::Base
include ::Refinery::ApplicationController
helper ApplicationHelper
helper Refinery::Core::Engine.helpers
include Refinery::Admin::BaseController

Expand Down
5 changes: 0 additions & 5 deletions core/app/helpers/application_helper.rb

This file was deleted.

8 changes: 8 additions & 0 deletions core/spec/lib/refinery/core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,12 @@
end
end
end

describe Refinery::Core::Engine do
describe "#helpers" do
it "should not include ApplicationHelper" do
Refinery::Core::Engine.helpers.ancestors.map(&:name).should_not include("ApplicationHelper")
end
end
end
end

0 comments on commit b4b5342

Please sign in to comment.