Permalink
Browse files

Example of accessing a property.

  • Loading branch information...
seven1m committed Feb 17, 2014
1 parent ac8a031 commit ba264a25bf73aef37ffb4bd1da1f7da061d3cc9e
Showing with 4 additions and 0 deletions.
  1. +4 −0 06-record.exs
View
@@ -35,6 +35,10 @@ defmodule RecordTest do
assert sample == {User, "kai@example.com", "trains"}
end
+ test "property" do
+ assert sample.email == "kai@example.com"
+ end
+
test "update" do
u = sample
u2 = u.update(email: "tim@example.com")

0 comments on commit ba264a2

Please sign in to comment.