0

I'm refurbishing some old tests, which appear to be Test::Unit with Shoulda. Some parts have a syntax expect {block}, but I can't find any references to expect in the current Shoulda code. expect appears at the class level, where I see other setup or should statements.

Justin Love
  • 4,397
  • 25
  • 36
  • Sounds like `rspec` to me. http://rspec.info – iltempo Feb 09 '13 at 20:55
  • Except that in rspec, `expect` is used inside `it`. Here, the `expect` is used in the same way as `it {}` – Justin Love Feb 09 '13 at 21:46
  • When you are talking about *old*, which time in the past do you mean? – iltempo Feb 09 '13 at 21:48
  • All the expects seem to be from the second half of 2009 – Justin Love Feb 10 '13 at 01:26
  • 1
    if the test works try slapping in a ```puts method(:expect).source_location``` and that will show you where it's defined i.e ```puts method(:ap).source_location #=> ["lib/ruby/gems/2.0.0/gems/awesome_print-1.2.0/lib/awesome_print/core_ext/kernel.rb", 19]``` – jtzero Aug 28 '14 at 17:17

0 Answers0