Created
May 12, 2011 01:10
-
-
Save ericchen/967739 to your computer and use it in GitHub Desktop.
Test callback methods in Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should sending command after record created" do | |
@cmd_pool = CommandPool.new | |
@cmd_pool.valid?.should == true | |
@cmd_pool.should_receive(:send_udp_command) | |
@cmd_pool.run_callbacks(:create) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment