Skip to content

Commit

Permalink
Merge pull request rubytaiwan#124 from winfield/hotfix/fix_nilClass_i…
Browse files Browse the repository at this point in the history
…n_cpanel_nodes_index

fix spec which are using Factory
  • Loading branch information
huacnlee committed Dec 2, 2011
2 parents f6f8bec + 53c0480 commit 1f0c9cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/factories/nodes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FactoryGirl.define do
factory :node do
sequence(:name){|n| "name#{n}" }
section { |s| s.association(:section) }
summary 'summary'
end
end
5 changes: 5 additions & 0 deletions spec/factories/section.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FactoryGirl.define do
factory :section, do
sequence(:name){|n| "name#{n}" }
end
end

0 comments on commit 1f0c9cc

Please sign in to comment.