```ruby
require 'spec_helper'

describe ActiveRemote::Serialization do
  describe "#add_errors" do
    let(:error) { Generic::Error.new(:field => 'name', :message => 'Boom!') }
    let(:response) {
      tag = Generic::Remote::Tag.new
      tag.errors << error
      tag
    }

    subject { Tag.new }

    context "when the response has errors" do
      it "adds the errors to the active remote object" do
        subject.add_errors(response.errors)
        subject.errors[:name].should =~ ['Boom!']
      end
    end
  end

  # describe "#serialize_records" do
  #   let(:last_response) {
  #     MessageWithOptions.new(:records => records)
  #   }
  #   let(:records) { [ { :foo => 'bar' } ] }
  #
  #   subject { Tag.new }
  #
  #   context "when the last response has records" do
  #
  #     before { subject.stub(:last_response).and_return(last_response) }
  #
  #     it "serializes records into active remote objects" do
  #       subject.serialize_records.each do |record|
  #         record.should be_a Tag
  #       end
  #     end
  #   end
  #
  #   context "when the last response doesn't respond to records" do
  #     it "returns nil" do
  #       subject.serialize_records.should be_nil
  #     end
  #   end
  # end
end
```

Add a spec for Base.serialize_records
user
```ruby
require 'spec_helper'

describe ActiveRemote::Serialization do
  describe ".serialize_records" do
    let(:records) { [ { :foo => 'bar' } ] }

    subject { Tag.new }

    it "serializes records into active remote objects" do
      Tag.serialize_records(records).each do |record|
        record.should be_a Tag
      end
    end
  end

  describe "#add_errors" do
    let(:error) { Generic::Error.new(:field => 'name', :message => 'Boom!') }
    let(:response) {
      tag = Generic::Remote::Tag.new
      tag.errors << error
      tag
    }

    subject { Tag.new }

    context "when the response has errors" do
      it "adds the errors to the active remote object" do
        subject.add_errors(response.errors)
        subject.errors[:name].should =~ ['Boom!']
      end
    end
  end
end
```
assistant