Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require File.dirname(__FILE__) + '/../test_helper'
- class FooTest < Test::Unit::TestCase
- def test_foo
- Array.stubs(:foo).returns("hi")
- assert_equal "hi", Array.foo
- end
- def test_foobar
- Array.expects(:foobar).returns("hi")
- assert_equal "hi", Array.foobar
- end
- end
Add Comment
Please, Sign In to add comment