<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,12 @@
 module FrontHelper
+  # TODO: should be made customisable
+  MEETING_WDAY = 3        # Wednesday
+  
+  # returns the date for the next meeting
+  def next_meeting_date
+    last_day_of_month = Date.today.end_of_month
+    total = last_day_of_month.wday + MEETING_WDAY + 1
+    total -= 7 if total &gt;= 7
+    return last_day_of_month - total.days
+  end  
 end</diff>
      <filename>app/helpers/front_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,3 @@
 module PageHelper
   
-  # TODO: should be made customisable
-  MEETING_WDAY = 3        # Wednesday
-  
-  # returns the date for the next meeting
-  def next_meeting_date
-    last_day_of_month = Date.today.end_of_month
-    total = last_day_of_month.wday + MEETING_WDAY + 1
-    total -= 7 if total &gt;= 7
-    return last_day_of_month - total.days
-  end
-  
 end</diff>
      <filename>app/helpers/page_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,11 +11,6 @@
 
 ActiveRecord::Schema.define(:version =&gt; 20081015120059) do
 
-  create_table &quot;attendance&quot;, :id =&gt; false, :force =&gt; true do |t|
-    t.integer &quot;meeting_id&quot;, :limit =&gt; 11
-    t.integer &quot;person_id&quot;,  :limit =&gt; 11
-  end
-
   create_table &quot;bj_config&quot;, :primary_key =&gt; &quot;bj_config_id&quot;, :force =&gt; true do |t|
     t.text &quot;hostname&quot;
     t.text &quot;key&quot;
@@ -62,21 +57,6 @@ ActiveRecord::Schema.define(:version =&gt; 20081015120059) do
     t.integer  &quot;exit_status&quot;,    :limit =&gt; 11
   end
 
-  create_table &quot;comments&quot;, :force =&gt; true do |t|
-    t.text     &quot;note&quot;
-    t.datetime &quot;created_at&quot;
-    t.datetime &quot;updated_at&quot;
-    t.integer  &quot;person_id&quot;,  :limit =&gt; 11
-    t.integer  &quot;topic_id&quot;,   :limit =&gt; 11
-  end
-
-  create_table &quot;meetings&quot;, :force =&gt; true do |t|
-    t.datetime &quot;date&quot;
-    t.datetime &quot;created_at&quot;
-    t.datetime &quot;updated_at&quot;
-    t.string   &quot;venue&quot;
-  end
-
   create_table &quot;people&quot;, :force =&gt; true do |t|
     t.string   &quot;username&quot;
     t.string   &quot;name&quot;
@@ -87,13 +67,4 @@ ActiveRecord::Schema.define(:version =&gt; 20081015120059) do
     t.string   &quot;twitter_user&quot;
   end
 
-  create_table &quot;topics&quot;, :force =&gt; true do |t|
-    t.string   &quot;title&quot;
-    t.text     &quot;description&quot;
-    t.string   &quot;link&quot;
-    t.datetime &quot;created_at&quot;
-    t.datetime &quot;updated_at&quot;
-    t.integer  &quot;meeting_id&quot;,  :limit =&gt; 11
-  end
-
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,79 @@
 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
 
 describe FrontHelper do
+  include FrontHelper
   
-  #Delete this example and add some real ones or delete this file
-  it &quot;should be included in the object returned by #helper&quot; do
-    included_modules = (class &lt;&lt; helper; self; end).send :included_modules
-    included_modules.should include(FrontHelper)
-  end
+  # TODO: change the tests so that it is not tied to the particular day of the week
+  describe &quot;next_meeting_date (Wednesday)&quot; do
+    
+    it &quot;should return last Wednesday for month ending on a Wednesday&quot; do
+      mock_today = Date.new(2008,12,1)
+      last_wednesday = mock_today.end_of_month
+      1.upto(31) { |d|
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)      
+        mock_today += 1.day
+      }
+    end
+
+    it &quot;should return last Wednesday for month ending on a Thursday&quot; do
+      mock_today = Date.new(2008,7,1)
+      last_wednesday = mock_today.end_of_month - 1.day
+      1.upto(31) { |d|
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)      
+        mock_today += 1.day
+      }
+    end
+
+    it &quot;should return last Wednesday for month ending on a Friday&quot; do
+      mock_today = Date.new(2008,10,1)
+      last_wednesday = mock_today.end_of_month - 2.days
+      1.upto(31) { |d|
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)      
+        mock_today += 1.day
+      }
+    end
 
+    it &quot;should return last Wednesday for month ending on a Saturday&quot; do
+      mock_today = Date.new(2008,5,1)
+      last_wednesday = mock_today.end_of_month - 3.days
+      1.upto(30) { |d|
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)      
+        mock_today += 1.day
+      }
+    end
+
+    it &quot;should return last Wednesday for month ending on a Sunday&quot; do
+      mock_today = Date.new(2008,8,1)
+      last_wednesday = mock_today.end_of_month - 4.days
+      1.upto(31) { |d|
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)      
+        mock_today += 1.day
+      }
+    end
+       
+    it &quot;should return last Wednesday for month ending on a Monday&quot; do
+      mock_today = Date.new(2008,6,1)
+      last_wednesday = mock_today.end_of_month - 5.days
+      1.upto(30) { |d|
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)      
+        mock_today += 1.day
+      }
+    end
+
+    it &quot;should return last Wednesday for month ending on a Tuesday&quot; do
+      mock_today = Date.new(2008,9,1)
+      last_wednesday = mock_today.end_of_month - 6.days
+      1.upto(30) { |d|      
+        Date.stub!(:today).and_return(mock_today)
+        next_meeting_date.should eql(last_wednesday)
+        mock_today += 1.day     
+      }
+    end          
+  end
 end</diff>
      <filename>spec/helpers/front_helper_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,81 +1,5 @@
 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
 
 describe PageHelper do
-  include PageHelper
-  
-  # TODO: change the tests so that it is not tied to the particular day of the week
-  describe &quot;next_meeting_date (Wednesday)&quot; do
-    
-    it &quot;should return last Wednesday for month ending on a Wednesday&quot; do
-      mock_today = Date.new(2008,12,1)
-      last_wednesday = mock_today.end_of_month
-      1.upto(31) { |d|
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)      
-        mock_today += 1.day
-      }
-    end
-
-    it &quot;should return last Wednesday for month ending on a Thursday&quot; do
-      mock_today = Date.new(2008,7,1)
-      last_wednesday = mock_today.end_of_month - 1.day
-      1.upto(31) { |d|
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)      
-        mock_today += 1.day
-      }
-    end
-
-    it &quot;should return last Wednesday for month ending on a Friday&quot; do
-      mock_today = Date.new(2008,10,1)
-      last_wednesday = mock_today.end_of_month - 2.days
-      1.upto(31) { |d|
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)      
-        mock_today += 1.day
-      }
-    end
-
-    it &quot;should return last Wednesday for month ending on a Saturday&quot; do
-      mock_today = Date.new(2008,5,1)
-      last_wednesday = mock_today.end_of_month - 3.days
-      1.upto(30) { |d|
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)      
-        mock_today += 1.day
-      }
-    end
-
-    it &quot;should return last Wednesday for month ending on a Sunday&quot; do
-      mock_today = Date.new(2008,8,1)
-      last_wednesday = mock_today.end_of_month - 4.days
-      1.upto(31) { |d|
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)      
-        mock_today += 1.day
-      }
-    end
-       
-    it &quot;should return last Wednesday for month ending on a Monday&quot; do
-      mock_today = Date.new(2008,6,1)
-      last_wednesday = mock_today.end_of_month - 5.days
-      1.upto(30) { |d|
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)      
-        mock_today += 1.day
-      }
-    end
-
-    it &quot;should return last Wednesday for month ending on a Tuesday&quot; do
-      mock_today = Date.new(2008,9,1)
-      last_wednesday = mock_today.end_of_month - 6.days
-      1.upto(30) { |d|      
-        Date.stub!(:today).and_return(mock_today)
-        next_meeting_date.should eql(last_wednesday)
-        mock_today += 1.day     
-      }
-    end
-          
-  end
 
 end</diff>
      <filename>spec/helpers/page_helper_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>78c38212d8e73ebd7e8b3b2f13b4c70f554837b1</id>
    </parent>
  </parents>
  <author>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </author>
  <url>http://github.com/artpop/crc_site/commit/8a2f461d9ae2b227e3a98272cc7b7d93aa34db6b</url>
  <id>8a2f461d9ae2b227e3a98272cc7b7d93aa34db6b</id>
  <committed-date>2008-10-16T04:19:12-07:00</committed-date>
  <authored-date>2008-10-16T04:19:12-07:00</authored-date>
  <message>move schlick's next meeting helper into the FrontHelper</message>
  <tree>46dd20f1378311770cad1a3cd910fd6dfddbfd29</tree>
  <committer>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </committer>
</commit>
