Sha256: 6f2560fc1d8275101d9ec003f6b2eceacf47241550ef6733683641495d4464c6
Contents?: true
Size: 662 Bytes
Versions: 12
Compression:
Stored size: 662 Bytes
Contents
require 'spec_helper' describe "Security: " do include Capybara::DSL before(:each) do User.delete_all end context "If no user is present" do it "render the signup view" do visit '/' within('#alchemy_greeting') { page.should have_content('Signup') } end end context "If on or more users are present" do it "a visitor should not be able to signup" do @user = User.create({:login => 'foo', :email => 'foo@bar.com', :password => 's3cr3t', :password_confirmation => 's3cr3t'}) visit '/admin/signup' within('#alchemy_greeting') { page.should_not have_content('have to signup') } end end end
Version data entries
12 entries across 12 versions & 1 rubygems