try/40_customer_try.rb in familia-1.0.0.pre.rc3 vs try/40_customer_try.rb in familia-1.0.0.pre.rc4

- old
+ new

@@ -16,11 +16,11 @@ ## Customer can be saved @customer.save #=> true ## Customer can be retrieved by identifier -retrieved_customer = Customer.from_redis("test@example.com") +retrieved_customer = Customer.from_identifier("test@example.com") retrieved_customer.custid #=> "test@example.com" ## Customer fields can be accessed @customer.email @@ -33,11 +33,11 @@ ## Customer can update fields @customer.planid = "premium" @customer.save ident = @customer.identifier -Customer.from_redis(ident).planid +Customer.from_identifier(ident).planid #=> "premium" ## Customer can increment secrets_created counter @customer.secrets_created.clear @customer.secrets_created.increment @@ -88,10 +88,10 @@ @customer.password_reset["token"] #=> "reset123" ## Customer can be destroyed ret = @customer.destroy! -cust = Customer.from_redis("test@example.com") +cust = Customer.from_identifier("test@example.com") exists = Customer.exists?("test@example.com") [ret, cust.nil?, exists] #=> [true, true, false] ## Customer.destroy! can be called on an already destroyed object