Forum: RSpec what is the context?

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.
Zhenning G. (Guest)
on 2009-03-30 08:19
describe MovieList do
  context "when first created" do
    it "should be empty" do
      movie_list = MovieList.new
      movie_list.should be_empty
    end
  end
end


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. 
<removed_email_address@domain.invalid>
wrote:
> 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.