I made a draft/exploratory version of two new rbiphonetest generators:
rspec_model and story. My code's at
http://github.com/avh4/rbiphonetest/commits/master
As you hinted, we still need to clearly define the line between the
app generator and the component generators. I think this is important
because using test/unit and rspec and rspec/story are not mutually
exclusive-- someone might want to use more than one at the same time.
So I think rbiphonetest shouldn't require a choice up front if at all
possible-- maybe it just sets a default for which type of test
"generate model" generates-- but I think it should be possible to
generate new tests, specs and stories at any point regardless of what
configuration was chosen initially. The biggest hurdle I see in doing
that at this point is that the Rakefile will need to be broken up so
that, for instance, "generate spec" can add the Spec::Rake::SpecTask
task if it hasn't already been created.
The rspec/story support will also take a bit more thought since a new
story doesn't necessarily correspond to an individual model class.
I'll start to get a better idea of how to do this when I write a few
tests for my cocoa app.
When I get a chance to work on this some more, I'll take a look at how
the merb folks have done it.
Cheers,
--Aaron V.