Sha256: c2f237fb2135312f2a52eecc3da2604bd764f86648bfc85add67b7e1114e596b

Contents?: true

Size: 498 Bytes

Versions: 5

Compression:

Stored size: 498 Bytes

Contents

require 'spec_helper'

module Cadenero
  describe Member do
    let!(:user) { stub_model(Cadenero::User, id: 101, email: "testy@example.com", password: "12345678")}
    let!(:account) { stub_model(Cadenero::V1::Account, id: 1001, authentication_token: "dsdaefer412add", 
      owner: user) }

    it "should have the auth_token" do
      member = Member.new
      member.account = account
      member.user = user
      member.save!
      expect(member.auth_token).not_to eq(nil)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cadenero-0.0.2.b10 spec/models/cadenero/member_spec.rb
cadenero-0.0.2.b8 spec/models/cadenero/member_spec.rb
cadenero-0.0.2.b7 spec/models/cadenero/member_spec.rb
cadenero-0.0.2.b6 spec/models/cadenero/member_spec.rb
cadenero-0.0.2.b5 spec/models/cadenero/member_spec.rb