Sha256: 8fc38a7331d8f53285602f5fa9efba590e0d09050477de40f499a3b62727c265
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 Bytes
Contents
require 'spec_helper' describe "Security: " do context "If no user is present" do it "render the signup view" do visit '/' expect(current_path).to eq('/admin/signup') end end context "If user is present" do before { allow(Alchemy::User).to receive_messages(:count => 1) } it "a visitor should not be able to signup" do visit '/admin/signup' within('#alchemy_greeting') { expect(page).not_to have_content('have to signup') } end context "that is not logged in" do it "should see login form" do visit '/admin/dashboard' expect(current_path).to eq('/admin/login') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alchemy-devise-3.2.0 | spec/features/security_feature_spec.rb |
alchemy-devise-2.1.0 | spec/features/security_feature_spec.rb |
alchemy-devise-2.1.0.beta3 | spec/features/security_feature_spec.rb |