Skip to content

Commit

Permalink
Fix test for older Rails versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Nov 12, 2017
1 parent 05e973a commit 33b01e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/integration/engine_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ class RoutingTest < ActionDispatch::IntegrationTest
def test_with_engine_inside_localized_block
get '/engine_es'
assert_response :success
assert_equal '/es/blorgh/posts', response.body

url =
if Rails.version < '5.1.3'
'/blorgh/posts'
else
'/es/blorgh/posts'
end

assert_equal url, response.body
end

def test_with_engine_outside_localized_block
Expand Down

0 comments on commit 33b01e8

Please sign in to comment.