test "password_digest value gets set to a hash" do changeset = User.changeset(%User{}, @valid_attrs) assert Comeonin.Bcrypt.checkpw(@valid_attrs.password, Ecto.Changeset.get_change(changeset, :password_digest)) end
Writing a Blog Engine in Phoenix and Elixir: Part 1
Brandon Richey
21635

I had to replace vail_attrs to valid_create_atrrs in order to pass tests

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.