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

Version Path
active_remote-2.4.0 spec/lib/active_remote/publication_spec.rb
active_remote-2.3.5 spec/lib/active_remote/publication_spec.rb
active_remote-2.3.4 spec/lib/active_remote/publication_spec.rb
active_remote-2.3.3 spec/lib/active_remote/publication_spec.rb
active_remote-2.3.3.pre spec/lib/active_remote/publication_spec.rb
active_remote-2.3.2 spec/lib/active_remote/publication_spec.rb
active_remote-2.3.1 spec/lib/active_remote/publication_spec.rb
active_remote-2.3.0 spec/lib/active_remote/publication_spec.rb
active_remote-2.2.0 spec/lib/active_remote/publication_spec.rb