Skip to content

Commit

Permalink
Indend the generated route to four spaces deep
Browse files Browse the repository at this point in the history
This matches the indenting in the rest of the file
  • Loading branch information
jcoyne committed Feb 15, 2018
1 parent 7ee1581 commit 75f2e8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/generators/blacklight/test_support_generator.rb
Expand Up @@ -16,10 +16,10 @@ class TestSupport < Rails::Generators::Base
def alternate_controller
copy_file "alternate_controller.rb", "app/controllers/alternate_controller.rb"

routing_code = <<-EOF.strip_heredoc
resource :alternate, controller: 'alternate', only: [:index] do
concerns :searchable
end
routing_code = <<-EOF
resource :alternate, controller: 'alternate', only: [:index] do
concerns :searchable
end
EOF

sentinel = /concern :searchable[^\n]+\n/
Expand Down

0 comments on commit 75f2e8c

Please sign in to comment.