fixed test:units rake task
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
Factory.define(:tag) do |f|
|
||||
f.name {Faker::Name.first_name.downcase}
|
||||
f.post_count 0
|
||||
f.category Tag.categories.general
|
||||
f.category {Tag.categories.general}
|
||||
f.related_tags ""
|
||||
end
|
||||
|
||||
Factory.define(:artist_tag, :parent => :tag) do |f|
|
||||
f.category Tag.categories.artist
|
||||
f.category {Tag.categories.artist}
|
||||
end
|
||||
|
||||
Factory.define(:copyright_tag, :parent => :tag) do |f|
|
||||
f.category Tag.categories.copyright
|
||||
f.category {Tag.categories.copyright}
|
||||
end
|
||||
|
||||
Factory.define(:character_tag, :parent => :tag) do |f|
|
||||
f.category Tag.categories.character
|
||||
f.category {Tag.categories.character}
|
||||
end
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
||||
|
||||
require 'shoulda'
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
require 'factory_girl'
|
||||
require 'shoulda'
|
||||
require 'mocha'
|
||||
require 'faker'
|
||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
||||
require 'rails/test_help'
|
||||
|
||||
Dir[File.expand_path(File.dirname(__FILE__) + "/factories/*.rb")].each {|file| require file}
|
||||
|
||||
Reference in New Issue
Block a user