mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Changed the way test_helper gets included and fixed some rake test oddities
This commit is contained in:
parent
de83c9cf8c
commit
43bf67f9ec
17 changed files with 14 additions and 13 deletions
1
Rakefile
1
Rakefile
|
@ -12,6 +12,7 @@ task :default => :test
|
|||
desc 'Test the factory_girl plugin.'
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
t.libs << 'lib'
|
||||
t.libs << 'test'
|
||||
t.pattern = 'test/**/*_test.rb'
|
||||
t.verbose = true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class AliasesTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class AssociationAttributeTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class AttributeTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class AttributesForProxyTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class BuildProxyTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class CreateProxyTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class DynamicAttributeTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class FactoryTest < Test::Unit::TestCase
|
||||
factory = Factory.new(:post)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class IntegrationTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class SequenceTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class StaticAttributeTest < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class Proxy < Test::Unit::TestCase
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require(File.join(File.dirname(__FILE__), 'test_helper'))
|
||||
require 'test_helper'
|
||||
|
||||
class StubProxyTest < Test::Unit::TestCase
|
||||
context "the stub proxy" do
|
||||
|
|
Loading…
Add table
Reference in a new issue