Sha256: 5bdf8c9b0b8ef0b198229e2ed5e0d535ac65901f3e2ee6b2c924d13e130ab29e
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
require 'spec/spec_helper' # Reusing stage table to simplify database integration tests class FakeForTransactionalAttribute < ActiveRecord::Base set_table_name :pipeline_stages transactional_attr :status end module Pipeline describe TransactionalAttribute do it "should extend active record to allow transactional attributes to be saved in a nested transaction" do obj = FakeForTransactionalAttribute.create(:status => "started") obj.status.should == "started" obj.reload.status.should == "started" obj.status = "finished" obj.status.should == "finished" obj.reload.status.should == "finished" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pipeline-0.0.9 | spec/pipeline/core_ext/transactional_attribute_spec.rb |