diff --git a/Gemfile b/Gemfile index 14ee72e..7c097b1 100644 --- a/Gemfile +++ b/Gemfile @@ -53,9 +53,10 @@ group :test do end group :cucumber do - gem 'cucumber-rails', '~> 1.0.6', :require => false gem 'capybara', '~> 2.1.0' - gem 'cucumber', '~> 1.0.6' + gem 'launchy' + gem 'cucumber', '~> 1.3.20' + gem 'cucumber-rails', '~> 1.4.2', :require => false gem 'database_cleaner', '~> 1.2.0' gem 'selenium-webdriver', '~> 2.39.0' end diff --git a/app/views/search/_article_description.html.erb b/app/views/search/_article_description.html.erb index cec29d1..01e9cf6 100644 --- a/app/views/search/_article_description.html.erb +++ b/app/views/search/_article_description.html.erb @@ -6,7 +6,7 @@ <% if !article.body.blank? %> <% description = strip_tags(article.body.to_s) %> <% description.gsub!(/\s{2,}/, ' ') %> - <% description = excerpt(description, description.first(3), 200) %> + <% description = excerpt description, description.first(3), radius: 200 %> <%= description %> <% else %> diff --git a/app/views/search/_full_enterprise.html.erb b/app/views/search/_full_enterprise.html.erb index 5b4fafd..38de832 100644 --- a/app/views/search/_full_enterprise.html.erb +++ b/app/views/search/_full_enterprise.html.erb @@ -12,7 +12,7 @@ <% elsif enterprise.home_page and enterprise.home_page.body %> <% body_stripped = strip_tags(enterprise.home_page.body) %> <% end %> - <%= excerpt(body_stripped, body_stripped.first(3), 200) if body_stripped %> + <%= excerpt body_stripped, body_stripped.first(3), radius: 200 if body_stripped %>
<%= _("City") %> diff --git a/app/views/search/_full_product.html.erb b/app/views/search/_full_product.html.erb index c8f9ec6..541cae1 100644 --- a/app/views/search/_full_product.html.erb +++ b/app/views/search/_full_product.html.erb @@ -49,7 +49,7 @@
<% if product.description %> <% desc_stripped = strip_tags(product.description) %> - <%= _('Description') %> <%= excerpt(desc_stripped, desc_stripped.first(3), 300) %> + <%= _('Description') %> <%= excerpt desc_stripped, desc_stripped.first(3), radius: 300 %> <% end %>
diff --git a/app/views/search/_image.html.erb b/app/views/search/_image.html.erb index dbb3080..8e129fb 100644 --- a/app/views/search/_image.html.erb +++ b/app/views/search/_image.html.erb @@ -26,7 +26,7 @@ <% end %> <% elsif image.is_a? Gallery %>