Sha256: 91130c682776a11a38f30c2b7c983d300a03df0d447c2f3253c8a8d86aff65d0

Contents?: true

Size: 313 Bytes

Versions: 13

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Post do
  subject { post }
  let(:post) { FactoryBot.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

13 entries across 13 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/models/post_spec.rb
g5_authenticatable-1.1.4.rc.3 spec/models/post_spec.rb
g5_authenticatable-1.1.4.rc.2 spec/models/post_spec.rb
g5_authenticatable-1.1.4.rc.1 spec/models/post_spec.rb
g5_authenticatable-1.1.2 spec/models/post_spec.rb
g5_authenticatable-1.1.2.pre.1 spec/models/post_spec.rb
g5_authenticatable-1.1.2.rc.5 spec/models/post_spec.rb
g5_authenticatable-1.1.2.rc.4 spec/models/post_spec.rb
g5_authenticatable-1.1.2.rc.3 spec/models/post_spec.rb
g5_authenticatable-1.1.2.rc.2 spec/models/post_spec.rb
g5_authenticatable-1.1.2.rc.1 spec/models/post_spec.rb
g5_authenticatable-1.1.1 spec/models/post_spec.rb
g5_authenticatable-1.1.0 spec/models/post_spec.rb