Guest User

Untitled

a guest
Feb 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. require File.dirname(__FILE__) + '/../test_helper'
  2.  
  3. class FooTest < Test::Unit::TestCase
  4.  
  5. def test_foo
  6. Array.stubs(:foo).returns("hi")
  7. assert_equal "hi", Array.foo
  8. end
  9.  
  10. def test_foobar
  11. Array.expects(:foobar).returns("hi")
  12. assert_equal "hi", Array.foobar
  13. end
  14.  
  15. end
Add Comment
Please, Sign In to add comment