Skip to content

Instantly share code, notes, and snippets.

@frostmark
Created August 16, 2017 20:13
Show Gist options
  • Save frostmark/31fafb5834c9026f06fb7d35f4c89f7c to your computer and use it in GitHub Desktop.
Save frostmark/31fafb5834c9026f06fb7d35f4c89f7c to your computer and use it in GitHub Desktop.
testing modules in isolated
class Answer < ApplicationRecord
include Policy
belongs_to :question
belongs_to :user
validates :body, presence: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment