Sha256: 84c3e89f6f4fe2ce293051e1111ef56fbbb50fc1b7ea7320636059ee3bde0ae2
Contents?: true
Size: 647 Bytes
Versions: 2
Compression:
Stored size: 647 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')) describe Reflex::Authlogic::Connection do before(:each) do @authorizable = Authorizable.create @connection = Reflex::Authlogic::Connection.new(:provider => 'Twitter', :authorizable => @authorizable) end it "should generate a UUID before validation on create" do @connection.uuid.should be_nil @connection.valid? @connection.uuid.should_not be_nil end it "should not update a UUID on update validations" do @connection.save lambda { @connection.save }.should_not change(@connection, :uuid) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reflex-0.0.3 | spec/reflex/authlogic/connection_spec.rb |
reflex-0.0.2 | spec/reflex/authlogic/connection_spec.rb |