Skip to content

Commit

Permalink
Another test for Factory.stub method
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenebolshakov authored and jferris committed Feb 17, 2009
1 parent 548586e commit c2f8e97
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/factory_test.rb
Expand Up @@ -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)
Expand Down

0 comments on commit c2f8e97

Please sign in to comment.