16 lines
351 B
Ruby
16 lines
351 B
Ruby
require_relative '../spec_helper'
|
|
require_relative '../shared_examples/decoratable'
|
|
|
|
RSpec.describe Post do
|
|
it_behaves_like 'a decoratable model'
|
|
|
|
it { should be_a ApplicationRecord }
|
|
|
|
describe '#to_global_id' do
|
|
let(:post) { Post.create }
|
|
subject { post.to_global_id }
|
|
|
|
it { is_expected.to eq post.decorate.to_global_id }
|
|
end
|
|
end
|