You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
class Format < ActiveRecord::Base
include Attrio
define_attributes(inspect: false) do
attr :teams_count, Integer, default: 2
end
end
The following test fails:
class FormatTest < ActiveSupport::TestCase
test "Teams count of a format should default to 2" do
Format.create(name: 'Foo')
assert_equal 2, Format.first.teams_count
end
end
The saved value of teams_count is nil.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
With the following code:
The following test fails:
The saved value of
teams_count
isnil
.The text was updated successfully, but these errors were encountered: