Sha256: 5ebb8cdba237f01c20a02cc08e22972bcc1497af68b92ee5b0171787905c8c15

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe ActiveRecord do
  it "loads classes with non-default primary key" do
    expect {
      YAML.load(Story.create.to_yaml)
    }.not_to raise_error
  end

  it "loads classes even if not in default scope" do
    expect {
      YAML.load(Story.create(:scoped => false).to_yaml)
    }.not_to raise_error
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_active_record-0.4.2 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.4.1 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.4.0 spec/delayed/serialization/active_record_spec.rb