Forum: RSpec what is the context?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Zhenning G. (Guest)
on 2009-03-30 08:19
describe MovieList do
  context "when first created" do
    it "should be empty" do
      movie_list =
      movie_list.should be_empty

what is the context work for?
David C. (Guest)
on 2009-03-30 09:05
(Received via mailing list)
On Sun, Mar 29, 2009 at 11:19 PM, Zhenning G. 
> what is the context work for?
context() is an alias of describe(). They do the same thing, but they
read differently in your spec.
This topic is locked and can not be replied to.