2013-09-29 90 views

回答

0

您可以通過RSPEC-

def postedit do 
    before { visit posteditpage_path } 
    subject { post } 

    def posteach do 
    it {should_contain editlink_path} 
    end 
    end 
end