2015-08-27 02:24:34 +00:00
|
|
|
require_relative '../spec_helper'
|
|
|
|
require_relative '../shared_examples/decoratable'
|
2012-12-28 12:52:45 +00:00
|
|
|
|
2015-08-27 02:24:34 +00:00
|
|
|
RSpec.describe Post do
|
2017-09-11 16:35:14 +00:00
|
|
|
it_behaves_like 'a decoratable model'
|
2017-06-20 13:56:53 +00:00
|
|
|
|
|
|
|
it { should be_a ApplicationRecord }
|
2017-09-11 16:35:14 +00:00
|
|
|
|
|
|
|
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
|
2012-12-28 12:52:45 +00:00
|
|
|
end
|