want to protect the products from not logged users When click in "New product" Then I should be redirected to login form } do scenario 'Should show login page when clicking new product link' do visit '/' click_link 'New Product' current_path.should == '/login' page.should have_content 'Log in' end end Thursday, August 30, 12