Permalink
Browse files

Another test for Factory.stub method

  • Loading branch information...
eugenebolshakov authored and jferris committed Jan 6, 2009
1 parent 548586e commit c2f8e97eb3858dec10851305f89878d4af2834aa
Showing with 0 additions and 9 deletions.
  1. +0 −9 test/factory_test.rb
View
@@ -366,15 +366,6 @@ class FactoryTest < Test::Unit::TestCase
returns('result')
assert_equal 'result', Factory.stub(@name, :attr => 'value')
end
should "use default strategy option as Factory.default_strategy" do
@factory.stubs(:default_strategy).returns(:create)
@factory.
expects(:run).
with(Factory::Proxy::Create, :attr => 'value').
returns('result')
assert_equal 'result', Factory.default_strategy(@name, :attr => 'value')
end
should "use the default strategy for the global Factory method" do
@factory.stubs(:default_strategy).returns(:create)

0 comments on commit c2f8e97

Please sign in to comment.