8
Bu kod ne yapar? Aşağıdaki RSpecRspec'in anlamı nedir?
describe "GET #index" do
it "populates an array of articles" do
article = Factory(:article)
get :index
assigns(:articles).should eq([article])
end
it "renders the :index view" do
get :index
response.should render_template :index
end
end
, ve biz yukarıda düzenlenmiş –
cevap çalıştığını nasıl kontrol ederim – apneadiving