Merbalists:
Suppose someone added a batch of assertions to Test::Unit::Assertion. The RSpec
documentation sez you can import them with inherit().
When I try, like this...
describe 'Post' do
inherit Test::Unit::Assertions
(or when I try inside a before{} block), I get this (elided):
$ rake spec
(in /home/Phlip/projects/merb/wolfmanblog)
Warning: please use bin/rake to load merb-core-1.0.8.1 from ./gems
Loading init file from /home/Phlip/projects/merb/wolfmanblog/config/init.rb
Loading /home/Phlip/projects/merb/wolfmanblog/config/environments/development.rb
./spec/models/post_spec.rb:13: undefined method `inherit' for
Merb::Test::ExampleGroup::Subclass_1:Class (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib/spec/example/exa
mple_group_methods.rb:99:in `module_eval'
...
from ./spec/models/post_spec.rb:6
Any ideas? The question is also out with RSpec, but the error message does
indeed have "Merb" in it...
--
Phlip
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---