rails spec view paths

原创文章,转载请注明来源并保留原文链接

it "should use different theme" do
  get 'homepage', :account_id => @account.id
  response.should render_template("accounts/homepage")
  controller.view_paths.first.to_s.should match(/themes\/jxb/)
end

Leave a Reply

Your email address will not be published. Required fields are marked *