Sha256: a300d6600c5e9f6153efcc45277751ccba734911472d55d2e49b3b9287b8817d
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'models/tester' describe "AfterCommitAction" do it "should correctly execute tasks after commit" do t = Tester.new t.array.should be_empty t.save! t.array.size.should == 2 t.array.should include('before_create') t.array.should include('after_create') t = Tester.first t.array.should be_empty t.save! t.array.size.should == 2 t.array.should include('before_update') t.array.should include('after_update') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
after_commit_action-1.0.0 | spec/after_commit_action_spec.rb |
after_commit_action-0.1.4 | spec/after_commit_action_spec.rb |