Forum: RSpec Re: Accessing the model class from within an rspec-rails spec

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
27565572097bf4c73e2a5617b29682db?d=identicon&s=25 Cameron Booth (Guest)
on 2008-10-30 04:35
(Received via mailing list)
Hi everybody,

David and Pat, thanks for the tip on using "described_type" to access
the
model class. I actually figured that one out like 10 minutes after
sending
the email. 2 learnings there, first, sometimes explaining the problem
helps
solve the problem, and second, maybe I should sit on those emails for 10
minutes before sending them ;-)

Scott, to answer your question, basically I'd love to find something
less
verbose. I'm really liking rspec, but am finding my specs are getting
longer
and longer, and I'm basically in the process of investigating what
options
are out there in terms of shortening the commonly done stuff in specs
(specifically in the context of Rails). Technoweenie has done some stuff
on
this, as has awfreeman on github. I'm in the process of diving deeper
into
those concepts to maybe pull together a plugin or something, will let
this
group know.

Cheers!
Cameron
This topic is locked and can not be replied to.