adding just the below to TimeEntry model fixed the problem and makes the
test pass:
class TimeEntry < ActiveRecord::Base
...
validates :worktime, presence: true, inclusion: { in: [0.5, 1] }
...
end
Regards
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/T6g1uxExEr4J.
For more options, visit https://groups.google.com/groups/opt_out.