Sha256: 0174836e23ad7af956ed10d54de4b16b63afa2cae9b78785d755b8b7b21dd0f7

Contents?: true

Size: 361 Bytes

Versions: 8

Compression:

Stored size: 361 Bytes

Contents

require 'spec_helper'

describe ActiveRecord do
  it 'should load classes with non-default primary key' do
    lambda {
      YAML.load(Story.create.to_yaml)
    }.should_not raise_error
  end

  it 'should load classes even if not in default scope' do
    lambda {
      YAML.load(Story.create(:scoped => false).to_yaml)
    }.should_not raise_error
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
raj_delayed_job_active_record-0.0.4 spec/delayed/serialization/active_record_spec.rb
raj_delayed_job_active_record-0.0.3 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.3.3 spec/delayed/serialization/active_record_spec.rb
drewda_delayed_job_active_record-0.3.2 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.3.2 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.3.1 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.3.0 spec/delayed/serialization/active_record_spec.rb
delayed_job_active_record-0.2.2 spec/delayed/serialization/active_record_spec.rb