public
Description: a ruby on rails plugin to create and display a social feed
Homepage: http://upstream-berlin.com/blog/open-source/#social_feed
Clone URL: git://github.com/langalex/social_feed.git
Alexander Lang (author)
Mon Jun 09 03:35:09 -0700 2008
commit  26eea0cd67b7a3ba27737ba657888d6dbc1b8d38
tree    5d8b96e426b8b97329588cd562c09c7f59028986
parent  4cf859e25db2223564cbc6e487b6b48659307279
...
1
2
3
4
 
5
6
7
8
...
1
2
3
 
4
5
6
7
8
0
@@ -1,7 +1,7 @@
0
 module SocialFeed
0
   module SocialFeedHelper
0
     def feed_event_partial_name(event)
0
- event.class.name.underscore.sub('event', 'hint')
0
+ event.class.name.underscore.sub(/event$/, 'hint')
0
     end
0
   end
0
 end
0
\ No newline at end of file
...
6
7
8
9
 
10
11
12
13
 
14
15
16
...
6
7
8
 
9
10
11
12
 
13
14
15
16
0
@@ -6,11 +6,11 @@ class TestEventCreatedEvent; end
0
 
0
 describe SocialFeed::SocialFeedHelper do
0
   
0
- it "should derive the hint partial form the feed class" do
0
+ it "should derive the hint partial from the feed class" do
0
     feed_event_partial_name(TestEvent.new).should == 'test_hint'
0
   end
0
   
0
- it "should only replace event with hint on the end" do
0
+ it "should only replace event with hint at the end" do
0
     feed_event_partial_name(TestEventCreatedEvent.new).should == 'test_event_created_hint'
0
   end
0
   

Comments

    No one has commented yet.