Sha256: bd83c157885620cf4d672c864b7f607651ee65284e70c24c1747896121396251

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Post do
  subject { post }
  let(:post) { FactoryGirl.create(:post) }

  it { is_expected.to belong_to(:author) }

  it 'should have a G5Authenticatable::User as the author' do
    expect(post.author).to be_a(G5Authenticatable::User)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
g5_authenticatable-1.0.0 spec/models/post_spec.rb
g5_authenticatable-1.0.0.pre.4 spec/models/post_spec.rb
g5_authenticatable-1.0.0.pre.3 spec/models/post_spec.rb
g5_authenticatable-1.0.0.pre.2 spec/models/post_spec.rb
g5_authenticatable-1.0.0.pre.1 spec/models/post_spec.rb