<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,9 +2,9 @@ require File.dirname(__FILE__) + '/helper.rb'
 
 describe Gene do
 
- before(:all) do
-   fixtures
- end
+  before(:all) do
+    fixtures
+  end
 
   describe 'creating a valid gene' do
 
@@ -37,4 +37,16 @@ describe Gene do
 
   end
 
+  describe 'an existing gene' do
+
+    it 'should return the expected molecular weight' do
+      Factory(:gene).total_protein_weight.should be_close(19057.8242, 0.1)
+    end
+
+    it 'should return the average residue weight' do
+      Factory(:gene).average_residue_weight.should be_close(112.104, 0.1)
+    end
+
+  end
+
 end</diff>
      <filename>spec/gene.spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0cf839bf87d9dd76f3a5c94a095b46ac9f2f6165</id>
    </parent>
  </parents>
  <author>
    <name>Michael Barton</name>
    <email>mail@michaelbarton.me.uk</email>
  </author>
  <url>http://github.com/michaelbarton/cost_in_evolution/commit/b1dcdd2ce0469b4f7b2fdc6e0da3a218f553be3e</url>
  <id>b1dcdd2ce0469b4f7b2fdc6e0da3a218f553be3e</id>
  <committed-date>2008-12-03T06:58:55-08:00</committed-date>
  <authored-date>2008-12-03T06:58:55-08:00</authored-date>
  <message>Create gene specs for average and total molecular weight</message>
  <tree>27e5223347c364a943642be8d924f0713b18ee6c</tree>
  <committer>
    <name>Michael Barton</name>
    <email>mail@michaelbarton.me.uk</email>
  </committer>
</commit>
