Skip to content

Commit

Permalink
Exclude fragment from href attribute as request.original_url does not…
Browse files Browse the repository at this point in the history
… include it
  • Loading branch information
lucke84 committed May 1, 2016
1 parent 303f401 commit 88a1dc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/dummy/spec/features/rails_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
port = Capybara.current_session.server.port
host_port = "#{host}:#{port}"
keys_to_vals = {
href: "http://#{host_port}/#{pathname}?ab=cd#123",
href: "http://#{host_port}/#{pathname}?ab=cd",
location: "/#{pathname}?ab=cd#123",
port: port,
scheme: "http",
Expand Down
4 changes: 2 additions & 2 deletions spec/dummy/spec/requests/server_render_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ def check_match(pathname, id_base)
html_nodes = Nokogiri::HTML(response.body)
top_id = "##{id_base}-react-component-0"
keys_to_vals = {
href: "http://www.example.com/#{pathname}?ab=cd#123",
href: "http://www.example.com/#{pathname}?ab=cd",
location: "/#{pathname}?ab=cd#123",
scheme: "http",
host: "www.example.com",
pathname: "/#{pathname}",
search: "ab=cd",
fragment: "#123",
fragment: "123",
i18nLocale: "en",
i18nDefaultLocale: "en",
httpAcceptLanguage: http_accept_language,
Expand Down

0 comments on commit 88a1dc9

Please sign in to comment.