Sha256: f57b6bf05e7717c4ae9ff1363284f05623ed141d688788cc0d31fc809cd7a862

Contents?: true

Size: 1.12 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
troo-0.0.7 test/lib/troo/models/member_test.rb
troo-0.0.6 test/lib/troo/models/member_test.rb
troo-0.0.5 test/lib/troo/models/member_test.rb
troo-0.0.4 test/lib/troo/models/member_test.rb
troo-0.0.3 test/lib/troo/models/member_test.rb
troo-0.0.2 test/lib/troo/models/member_test.rb