Implementing the majority of generic #import tests.
This commit is contained in:
parent
ca5f83e1cf
commit
db173ef907
8 changed files with 252 additions and 56 deletions
13
test/support/factories.rb
Normal file
13
test/support/factories.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
Factory.define :group do |m|
|
||||
m.sequence(:order) { |n| "Order #{n}" }
|
||||
end
|
||||
|
||||
Factory.define :invalid_topic, :class => "Topic" do |m|
|
||||
m.sequence(:title){ |n| "Title #{n}"}
|
||||
m.author_name nil
|
||||
end
|
||||
|
||||
Factory.define :topic do |m|
|
||||
m.sequence(:title){ |n| "Title #{n}"}
|
||||
m.sequence(:author_name){ |n| "Author #{n}"}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue