Commit 942507cf8d2aa74a4e445aa6a583cbb26c2ece3f
1 parent
6fcf788e
Exists in
master
and in
21 other branches
Fix link on agenda for a specific day
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
app/views/events/_month.html.erb
| @@ -13,8 +13,8 @@ | @@ -13,8 +13,8 @@ | ||
| 13 | date.day, | 13 | date.day, |
| 14 | :url => {:action => 'events_by_day', :year => date.year, :month => date.month, :day => date.day, :category_id => @category_id}, | 14 | :url => {:action => 'events_by_day', :year => date.year, :month => date.month, :day => date.day, :category_id => @category_id}, |
| 15 | :update => 'events-of-the-day', | 15 | :update => 'events-of-the-day', |
| 16 | - :loading => 'jQuery("#events-of-the-day").addClass("loading")', | ||
| 17 | - :complete => 'jQuery("#events-of-the-day").removeClass("loading")' | 16 | + :loading => "jQuery('#events-of-the-day').addClass('loading')", |
| 17 | + :complete => "jQuery('#events-of-the-day').removeClass('loading')" | ||
| 18 | ) : | 18 | ) : |
| 19 | date.day | 19 | date.day |
| 20 | %> | 20 | %> |
features/events.feature
| @@ -9,6 +9,7 @@ Feature: events | @@ -9,6 +9,7 @@ Feature: events | ||
| 9 | And the following events | 9 | And the following events |
| 10 | | owner | name | start_date | | 10 | | owner | name | start_date | |
| 11 | | josesilva | Another Conference | 2009-10-24 | | 11 | | josesilva | Another Conference | 2009-10-24 | |
| 12 | + | josesilva | Some Conference | 2009-10-22 | | ||
| 12 | 13 | ||
| 13 | Scenario: go to next month | 14 | Scenario: go to next month |
| 14 | Given I am on /profile/josesilva/events/2009/10 | 15 | Given I am on /profile/josesilva/events/2009/10 |
| @@ -114,9 +115,11 @@ Feature: events | @@ -114,9 +115,11 @@ Feature: events | ||
| 114 | @selenium | 115 | @selenium |
| 115 | Scenario: show events when i follow a specific day | 116 | Scenario: show events when i follow a specific day |
| 116 | Given I am on /profile/josesilva/events/2009/10 | 117 | Given I am on /profile/josesilva/events/2009/10 |
| 117 | - And I should see "Another Conference" | 118 | + And I should see "Another Conference" within "#agenda" |
| 119 | + And I should see "Some Conference" within "#agenda" | ||
| 118 | When I follow "24" | 120 | When I follow "24" |
| 119 | - Then I should see "Another Conference" | 121 | + Then I should see "Another Conference" within "#agenda" |
| 122 | + And I should not see "Some Conference" within "#agenda" | ||
| 120 | 123 | ||
| 121 | @selenium | 124 | @selenium |
| 122 | Scenario: show events in a range when i follow a specific day | 125 | Scenario: show events in a range when i follow a specific day |