Sha256: 5848243e5b5b73f73a0cca54afe9c130b7dc4ab07c56cb835269095dc362855c

Contents?: true

Size: 518 Bytes

Versions: 8

Compression:

Stored size: 518 Bytes

Contents

require 'rails_helper'

RSpec.describe Group do
  describe 'Model' do
    # MessageTrain Gem, and Rolify Gem by extension
    it { should have_many(:roles) }
    
    # MessageTrain Gem
    it { should have_many(:receipts) }
  end

  describe 'Scopes and Methods from Message Train' do
    include_context 'loaded site'

    describe '#conversations' do
      subject { first_group.conversations(:in) }
      its(:first) { should be_a MessageTrain::Conversation }
      its(:count) { should eq 1 }
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
message_train-0.1.7 spec/models/group_spec.rb
message_train-0.1.6 spec/models/group_spec.rb
message_train-0.1.5 spec/models/group_spec.rb
message_train-0.1.4 spec/models/group_spec.rb
message_train-0.1.3 spec/models/group_spec.rb
message_train-0.1.2 spec/models/group_spec.rb
message_train-0.1.1 spec/models/group_spec.rb
message_train-0.1.0 spec/models/group_spec.rb