diff --git a/spec/system/admin/enterprises_spec.rb b/spec/system/admin/enterprises_spec.rb index 69c52cf6b1..1759c540e3 100644 --- a/spec/system/admin/enterprises_spec.rb +++ b/spec/system/admin/enterprises_spec.rb @@ -149,7 +149,7 @@ describe ' within(".permalink") do link_path = "#{main_app.root_url}#{@enterprise.permalink}/shop" - link = find_link(link) + link = find_link(link_path) expect(link[:href]).to eq link_path expect(link[:target]).to eq '_blank' end