FactoryGirl.define do
  factory :animal do
    name "Fred"
    species "Elephant"
    color "gray"
  end

  factory :car do
    name "Betsy"
    color "white"
    year 1984
  end

  factory :image do
    title "Obama"
    url "http://obama.com/obama.jpg"
  end

  factory :location do
    title "Crawford Family Forum"
    address "474 S. Raymond, Pasadena"
  end

  factory :person do
    name "Bryan"
    ethnicity "none"
    age 100
  end

  factory :story do
    headline "Cool Headline"
    body "Lorem, etc."
  end

  factory :user do
    name "Bryan Ricker"
  end

  factory :version, :class => "Secretary::Version" do
    versioned { |v| v.association :story }
    user
  end
end

FactoryGirl.define do
  factory :animal do
    name "Fred"
    species "Elephant"
    color "gray"
  end

  factory :car do
    name "Betsy"
    color "white"
    year 1984
  end

  factory :image do
    title "Obama"
    url "http://obama.com/obama.jpg"
  end

  factory :location do
    title "Crawford Family Forum"
    address "474 S. Raymond, Pasadena"
  end

  factory :person do
    name "Bryan"
    ethnicity "none"
    age 100
  end

  factory :story do
    headline "Cool Headline"
    body "Lorem, etc."
  end

  factory :user do
    name "Bryan Ricker"
  end

  factory :version, class: "Secretary::Version" do
    versioned { |v| v.association :story }
    user
  end
end

--- 
+++ 
@@ -36,7 +36,7 @@
     name "Bryan Ricker"
   end
 
-  factory :version, class: "Secretary::Version" do
+  factory :version, :class => "Secretary::Version" do
     versioned { |v| v.association :story }
     user
   end
Switch to 1.8 hash syntax
