Sha256: 50badd61b7b90cd9a939d57daeddd70fba912a7c0501bae9442ecc7f4586c03e

Contents?: true

Size: 276 Bytes

Versions: 15

Compression:

Stored size: 276 Bytes

Contents

require 'spec_helper'

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

15 entries across 15 versions & 1 rubygems

Version Path
g5_authenticatable-0.9.1.pre.2 spec/models/post_spec.rb
g5_authenticatable-0.8.1.pre spec/models/post_spec.rb
g5_authenticatable-0.8.0 spec/models/post_spec.rb
g5_authenticatable-0.8.0.beta1 spec/models/post_spec.rb
g5_authenticatable-0.7.5 spec/models/post_spec.rb
g5_authenticatable-0.7.5.beta spec/models/post_spec.rb
g5_authenticatable-0.7.4 spec/models/post_spec.rb
g5_authenticatable-0.7.4.beta.1 spec/models/post_spec.rb
g5_authenticatable-0.7.3 spec/models/post_spec.rb
g5_authenticatable-0.7.2 spec/models/post_spec.rb
g5_authenticatable-0.7.1 spec/models/post_spec.rb
g5_authenticatable-0.7.0 spec/models/post_spec.rb
g5_authenticatable-0.6.0 spec/models/post_spec.rb
g5_authenticatable-0.5.1 spec/models/post_spec.rb
g5_authenticatable-0.5.0 spec/models/post_spec.rb