Sha256: 637305d991f0709470349bc67c2f556cb4f5ba8b4f95180e5314bb8b2f673509
Contents?: true
Size: 497 Bytes
Versions: 9
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe ActiveRemote::Publication do let(:attributes) { { :guid => 'foo', :name => 'bar' } } subject { Tag.new(attributes) } context "with publishable attributes defined" do let(:expected_hash) { attributes.slice(:name) } before { Tag.attr_publishable :name } after { reset_publishable_attributes(Tag) } it "serializes to a hash with only the publishable attributes" do expect(subject.publishable_hash).to eq expected_hash end end end
Version data entries
9 entries across 9 versions & 1 rubygems