Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3708 > unrolled thread
| Started by | Vahagn Hayrapetyan <vahagnh@gmail.com> |
|---|---|
| First post | 2011-04-29 14:19 -0500 |
| Last post | 2011-05-02 03:34 -0500 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.lang.ruby
must "explanation" {.test.} style not working in my unit tests Vahagn Hayrapetyan <vahagnh@gmail.com> - 2011-04-29 14:19 -0500
Re: must "explanation" {.test.} style not working in my unit tests Vahagn Hayrapetyan <vahagnh@gmail.com> - 2011-05-02 03:34 -0500
| From | Vahagn Hayrapetyan <vahagnh@gmail.com> |
|---|---|
| Date | 2011-04-29 14:19 -0500 |
| Subject | must "explanation" {.test.} style not working in my unit tests |
| Message-ID | <89144805096c67c5425e9e210ff04aa2@ruby-forum.com> |
Hi, I'm trying to use this extension: https://github.com/sandal/rbp/blob/master/testing/test_unit_extensions.rb in my unit tests, as explained here: http://answers.oreilly.com/topic/381-how-to-make-testunit-tests-more-readable/ My unit tests won't recognize this syntax however: undefined method `must' for StackTest:Class (NoMethodError) Does this have to do with the Ruby version perhaps? I'm using v. 1.9.2p0. Thanks! -- Posted via http://www.ruby-forum.com/.
[toc] | [next] | [standalone]
| From | Vahagn Hayrapetyan <vahagnh@gmail.com> |
|---|---|
| Date | 2011-05-02 03:34 -0500 |
| Message-ID | <e0b7bc3f5140a93d5b5ae34c706ef175@ruby-forum.com> |
| In reply to | #3708 |
@Chad: cheers! @serialhex: >or at least having a "test_helper.rb" file you require into your tests?? I wasn't doing that since I had the impression (from reading about this syntax) that this method was integrated into Test::Unit, so one could just use it "out of the box". Apparently I was wrong - I've pasted it into a helper file and required it and now it's working. Thanks! V. -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web