1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/models/session_spec.rb

18 lines
383 B
Ruby
Raw Normal View History

2019-09-03 09:43:24 -04:00
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Session do
subject { create :some_session }
describe '#account' do
it { is_expected.to belong_to(:account).required }
it { is_expected.to validate_presence_of(:account).with_message(:required) }
end
describe '#ip_address' do
it { is_expected.to validate_presence_of :ip_address }
end
end