Sha256: b8d33805e51cffa5d5368812ac5acbe45bda90cc66aebedcb50cfc50b0c535a0
Contents?: true
Size: 1.07 KB
Versions: 11
Compression:
Stored size: 1.07 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 "/authentications/new" do include AuthenticationsHelper before do activate_authlogic assign(:authentication, @authentication = Authentication.new) end it "renders the login form without signup link" do view.should_receive(:can_signup?).and_return(false) render rendered.should have_tag("form[action=#{authentication_path}][class=new_authentication]") rendered.should_not have_tag("a[href=#{signup_path}]") end it "renders the login form with signup link" do view.should_receive(:can_signup?).and_return(true) render rendered.should have_tag("form[action=#{authentication_path}][class=new_authentication]") rendered.should have_tag("a[href=#{signup_path}]") end end
Version data entries
11 entries across 11 versions & 1 rubygems