Permalink
Browse files

make the feed scanner case insensitive

  • Loading branch information...
technoweenie committed Oct 6, 2008
1 parent 1d99519 commit 630c51fa3b4b3f8577cbb483b5a469b00c92c9f8
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/seinfeld/models.rb
  2. +1 −1 spec/user_spec.rb
View
@@ -90,7 +90,7 @@ def committed_days_in_feed(page = 1)
break selected
end
- if entry.title =~ %r{^#{login} committed}
+ if entry.title.downcase =~ %r{^#{login.downcase} committed}
updated = entry.updated_at
date = Date.civil(updated.year, updated.month, updated.day)
selected.update date => nil
View
@@ -5,7 +5,7 @@ module Seinfeld
before :all do
@feed = OpenStruct.new
@feed.entries = [
- OpenStruct.new(:item_id => 'a', :title => "bob committed something", :updated_at => Date.civil(2008, 1, 1, 22)),
+ OpenStruct.new(:item_id => 'a', :title => "BOB committed something", :updated_at => Date.civil(2008, 1, 1, 22)),
OpenStruct.new(:item_id => 'b', :title => "bob watched something"),
OpenStruct.new(:item_id => 'c', :title => "bob committed something", :updated_at => Date.civil(2008, 1, 1, 23)),
OpenStruct.new(:item_id => 'd', :title => "bob committed something", :updated_at => Date.civil(2008, 1, 2, 23)),

0 comments on commit 630c51f

Please sign in to comment.