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?
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?
On Sun, Mar 29, 2009 at 11:19 PM, Zhenning G. [email protected]
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs