Sha256: 8c339b55d39c57900c3e0a4f00cd8aa5739981b92b447ca8412fb496f20af542
Contents?: true
Size: 401 Bytes
Versions: 28
Compression:
Stored size: 401 Bytes
Contents
require "spec_helper" describe ORS::Commands::Base do context ".run" do it "should instantiate the command and call #execute on it" do klass = mock!.new { mock!.execute.subject }.subject ORS::Commands::Base.run klass end end context "#run" do it "should call the class method" do mock(ORS::Commands::Base).run("Foo") subject.run "Foo" end end end
Version data entries
28 entries across 28 versions & 1 rubygems