Sha256: e5c0368839ac5cbb9dc2c13bc2baefb26379266afe8bf6f7a30e92b94dbe8e6a
Contents?: true
Size: 1.21 KB
Versions: 11
Compression:
Stored size: 1.21 KB
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe "/accounts/_new" do include AccountsHelper before do login_and_assign assign(:account, Account.new) assign(:users, [ current_user ]) end it "should render [create account] form" do render view.should render_template(:partial => "_top_section") view.should render_template(:partial => "_contact_info") view.should render_template(:partial => "_permissions") rendered.should have_tag("form[class=new_account]") end it "should render background info field if settings require so" do Setting.background_info = [ :account ] render rendered.should have_tag("textarea[id=account_background_info]") end it "should not render background info field if settings do not require so" do Setting.background_info = [] render rendered.should_not have_tag("textarea[id=account_background_info]") end end
Version data entries
11 entries across 11 versions & 1 rubygems