diff --git a/Gemfile b/Gemfile
index 3f13b5e6..f674d256 100644
--- a/Gemfile
+++ b/Gemfile
@@ -38,3 +38,7 @@ else
end
end
# END ENGINE_CART BLOCK
+
+unless File.exist?(file)
+ eval_gemfile File.expand_path('spec/test_app_templates/Gemfile.extra', File.dirname(__FILE__))
+end
diff --git a/app/views/browse_everything/_file.html.erb b/app/views/browse_everything/_file.html.erb
index 3d95470a..6e73407c 100644
--- a/app/views/browse_everything/_file.html.erb
+++ b/app/views/browse_everything/_file.html.erb
@@ -12,7 +12,7 @@
data-tt-parent-id="<%=parent%>"
data-tt-branch="<%=file.container? ? 'true' : 'false'%>">
-
+ |
<% if disabled %>
diff --git a/spec/test_app_templates/Gemfile.extra b/spec/test_app_templates/Gemfile.extra
new file mode 100644
index 00000000..696bc463
--- /dev/null
+++ b/spec/test_app_templates/Gemfile.extra
@@ -0,0 +1 @@
+gem 'jquery-rails'
diff --git a/spec/test_app_templates/lib/generators/test_app_generator.rb b/spec/test_app_templates/lib/generators/test_app_generator.rb
index 635503e4..5f47fc46 100644
--- a/spec/test_app_templates/lib/generators/test_app_generator.rb
+++ b/spec/test_app_templates/lib/generators/test_app_generator.rb
@@ -17,7 +17,10 @@ def inject_css
def inject_javascript
insert_into_file 'app/assets/javascripts/application.js', after: '//= require_tree .' do
- "\n//= require browse_everything"
+ %(
+ //= require jquery
+ //= require browse_everything
+ )
end
end
diff --git a/spec/views/browse_everything/_file.html.erb_spec.rb b/spec/views/browse_everything/_file.html.erb_spec.rb
index 185d1474..95dd3883 100644
--- a/spec/views/browse_everything/_file.html.erb_spec.rb
+++ b/spec/views/browse_everything/_file.html.erb_spec.rb
@@ -33,6 +33,10 @@
it 'draws link' do
expect(page).to have_selector('a.ev-link')
end
+
+ it 'provides hover text' do
+ expect(page.find('td.ev-file')['title']).to eq(file.name)
+ end
end
context 'max not configured' do
|