Sha256: 963842e3bc0aaf8fcd316286e22af3c6f480e7c714568e4b00dc5c43712baf49

Contents?: true

Size: 493 Bytes

Versions: 27

Compression:

Stored size: 493 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
      subject.publishable_hash.should eq expected_hash
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
active_remote-1.5.7 spec/lib/active_remote/publication_spec.rb
active_remote-1.5.6 spec/lib/active_remote/publication_spec.rb
active_remote-1.5.5 spec/lib/active_remote/publication_spec.rb
active_remote-1.5.4 spec/lib/active_remote/publication_spec.rb
active_remote-1.5.2 spec/lib/active_remote/publication_spec.rb
active_remote-1.5.1 spec/lib/active_remote/publication_spec.rb
active_remote-1.5.0 spec/lib/active_remote/publication_spec.rb