Sha256: 310790c9d780d249c82382da1b011505c96b9c21d89b9f49ba97fee612066f0c
Contents?: true
Size: 660 Bytes
Versions: 27
Compression:
Stored size: 660 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Castronaut::AuthenticationResult do it "exposes the given username at :username" do Castronaut::AuthenticationResult.new('billy').username.should == 'billy' end it "exposes the given message at :error_message" do Castronaut::AuthenticationResult.new(anything, 'my error').error_message.should == 'my error' end it "is valid if there is no error message" do Castronaut::AuthenticationResult.new(anything, nil).should be_valid end it "is invalid if there is an error message" do Castronaut::AuthenticationResult.new(anything, 'bad').should be_invalid end end
Version data entries
27 entries across 27 versions & 6 rubygems