diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index 222ec0b..c08047f 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -12,7 +12,7 @@
<%= t('latest_projects') %>
- <% cache do %>
+ <% cache action_suffix: 'latest_projects' do %>
<% @latest_projects.each do |project| %>
- <%= link_to(project.name, project_path(project.id)) %>
<% end %>
@@ -23,7 +23,7 @@
<%= t('latest_repositories') %>
- <% cache do %>
+ <% cache action_suffix: 'latest_repositories' do %>
<% @latest_repositories.each do |repository| %>
- <%= link_to(repository.name, repository_path(repository.id)) %>
<% end %>
@@ -34,7 +34,7 @@
<%= t('latest_configurations') %>
- <% cache do %>
+ <% cache action_suffix: 'latest_configurations' do %>
<% @latest_configurations.each do |configuration| %>
- <%= link_to(configuration.name, kalibro_configuration_path(configuration.id)) %>
<% end %>
diff --git a/features/homepage.feature b/features/homepage.feature
index 3af6b28..35f7589 100644
--- a/features/homepage.feature
+++ b/features/homepage.feature
@@ -3,7 +3,9 @@ Feature: Homepage
As a regular user
I want to have in one page useful links to manage my account and session
+ @kalibro_processor_restart
Scenario: Before signing in
+ Given I have a project named "GCC"
Then I am at the homepage
And I should see "Home"
And I should see "Project"
@@ -16,6 +18,7 @@ Feature: Homepage
And I should see "Latest projects"
And I should see "Latest repositories"
And I should see "Latest configurations"
+ Then I should see "GCC" only "1" times
Scenario: Signed in
Given I am a regular user
diff --git a/features/step_definitions/homepage_steps.rb b/features/step_definitions/homepage_steps.rb
index 90be273..2758687 100644
--- a/features/step_definitions/homepage_steps.rb
+++ b/features/step_definitions/homepage_steps.rb
@@ -12,4 +12,8 @@ end
Then(/^I should see "(.+)"$/) do |text|
expect(page).to have_content(text)
-end
\ No newline at end of file
+end
+
+Then(/^I should see "(.*?)" only "(.*?)" times$/) do |text, times|
+ expect(page).to have_content(text, count: times.to_i)
+end
--
libgit2 0.21.2