Skip to content

Instantly share code, notes, and snippets.

@MaryKuz
Created March 28, 2019 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaryKuz/923df653b071137b74faeb0c634d42bb to your computer and use it in GitHub Desktop.
Save MaryKuz/923df653b071137b74faeb0c634d42bb to your computer and use it in GitHub Desktop.
Write tests for the AuthToken model
require 'rails_helper'
RSpec.describe AuthToken, type: :model do
it { should belong_to :user }
it { should validate_presence_of :value }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment