Sha256: bdf65f3a980c1a60959de8ec6f496c30409fec484658d01f8d8f53effd81e1da

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

require_relative '../../../test_helper'

module Troo
  describe Member do
    let(:described_class) { Member }
    let(:described_instance) { Fabricate.build(:member) }

    subject { described_instance }

    context 'attributes' do
      it 'should have a username attribute' do
        subject.username.must_equal 'gavinlaking1'
      end

      it 'should have an email attribute' do
        subject.email.must_equal 'gavinlaking@gmail.com'
      end

      it 'should have a full_name attribute' do
        subject.full_name.must_equal 'Gavin Laking'
      end

      it 'should have an initials attribute' do
        subject.initials.must_equal 'GL'
      end

      it 'should have an avatar_id attribute' do
        subject.avatar_id.must_equal 'some_avatar_id'
      end

      it 'should have a bio attribute' do
        subject.bio.must_equal 'some bio'
      end

      it 'should have a url attribute' do
        subject.url.must_equal 'http://www.gavinlaking.name/'
      end

      it 'should have an external_member_id attribute' do
        subject.external_member_id.must_equal '5195fdb5a8c01a2318004f5d'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 test/lib/troo/models/member_test.rb