Sha256: be2dced130ec5275640db9c8831f7084511e712e9079ecee001647c0953135f0
Contents?: true
Size: 759 Bytes
Versions: 19
Compression:
Stored size: 759 Bytes
Contents
require 'rails_helper' module MessageTrain RSpec.describe Ignore do describe 'Model' do it { should belong_to :conversation } it { should belong_to :participant } it { should validate_presence_of :conversation } it { should validate_presence_of :participant } end describe 'Scopes and Methods' do include_context 'loaded site' describe '.find_all_by_participant' do subject do ignored_conversation.ignores.find_all_by_participant(first_user) end its(:first) { should be_a MessageTrain::Ignore } end describe '.conversations' do subject { MessageTrain::Ignore.conversations } it { should include ignored_conversation } end end end end
Version data entries
19 entries across 19 versions & 1 rubygems