Skip to content

Commit a5553c9

Browse files
author
David Rodríguez
committed
Remove dead test code
1 parent f5cb0ba commit a5553c9

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

spec/rails_helper.rb

-21
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,6 @@ def load_resources
3737
reload_routes!
3838
end
3939

40-
# Sets up a describe block where you can render controller
41-
# actions. Uses the Admin::PostsController as the subject
42-
# for the describe block
43-
def describe_with_render(*args, &block)
44-
describe *args do
45-
include RSpec::Rails::ControllerExampleGroup
46-
render_views
47-
# metadata[:behaviour][:describes] = ActiveAdmin.namespaces[:admin].resources['Post'].controller
48-
module_eval &block
49-
end
50-
end
51-
5240
def arbre(assigns = {}, helpers = mock_action_view, &block)
5341
Arbre::Context.new(assigns, helpers, &block)
5442
end
@@ -57,15 +45,6 @@ def render_arbre_component(assigns = {}, helpers = mock_action_view, &block)
5745
arbre(assigns, helpers, &block).children.first
5846
end
5947

60-
# Setup a describe block which uses capybara and rails integration
61-
# test methods.
62-
def describe_with_capybara(*args, &block)
63-
describe *args do
64-
include RSpec::Rails::IntegrationExampleGroup
65-
module_eval &block
66-
end
67-
end
68-
6948
# Returns a fake action view instance to use with our renderers
7049
def mock_action_view(assigns = {})
7150
controller = ActionView::TestCase::TestController.new

0 commit comments

Comments
 (0)