[rspec-users] what is the context?
dchelimsky at gmail.com
Mon Mar 30 00:42:11 EDT 2009
On Sun, Mar 29, 2009 at 11:19 PM, Zhenning Guan <lists at ruby-forum.com> wrote:
> describe MovieList do
> context "when first created" do
> it "should be empty" do
> movie_list = MovieList.new
> movie_list.should be_empty
> what is the context work for?
context() is an alias of describe(). They do the same thing, but they
read differently in your spec.
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users