diff --git a/app/views/events/_month.html.erb b/app/views/events/_month.html.erb
index 3e81a8b..978e23c 100644
--- a/app/views/events/_month.html.erb
+++ b/app/views/events/_month.html.erb
@@ -13,8 +13,8 @@
date.day,
:url => {:action => 'events_by_day', :year => date.year, :month => date.month, :day => date.day, :category_id => @category_id},
:update => 'events-of-the-day',
- :loading => 'jQuery("#events-of-the-day").addClass("loading")',
- :complete => 'jQuery("#events-of-the-day").removeClass("loading")'
+ :loading => "jQuery('#events-of-the-day').addClass('loading')",
+ :complete => "jQuery('#events-of-the-day').removeClass('loading')"
) :
date.day
%>
diff --git a/features/events.feature b/features/events.feature
index c9815ea..22772e2 100644
--- a/features/events.feature
+++ b/features/events.feature
@@ -9,6 +9,7 @@ Feature: events
And the following events
| owner | name | start_date |
| josesilva | Another Conference | 2009-10-24 |
+ | josesilva | Some Conference | 2009-10-22 |
Scenario: go to next month
Given I am on /profile/josesilva/events/2009/10
@@ -114,9 +115,11 @@ Feature: events
@selenium
Scenario: show events when i follow a specific day
Given I am on /profile/josesilva/events/2009/10
- And I should see "Another Conference"
+ And I should see "Another Conference" within "#agenda"
+ And I should see "Some Conference" within "#agenda"
When I follow "24"
- Then I should see "Another Conference"
+ Then I should see "Another Conference" within "#agenda"
+ And I should not see "Some Conference" within "#agenda"
@selenium
Scenario: show events in a range when i follow a specific day
--
libgit2 0.21.2