Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Find out the magic of EM minitest spec...

  • Loading branch information...
commit c7a3559373ce51f5b4a0c7a60ecea421bc67ca9f 1 parent dbf2fc0
Jack C Hong authored
Showing with 6 additions and 6 deletions.
  1. +0 −4 omf_rc/lib/omf_rc/cmd.rb
  2. +6 −2 omf_rc/test/omf_rc/cmd_spec.rb
View
4 omf_rc/lib/omf_rc/cmd.rb
@@ -10,10 +10,6 @@ def receive_data data
@result[:success] << data
end
- #def receive_stderr data
- # @result[:error] << data
- #end
-
def unbind
@callback.call(@result)
end
View
8 omf_rc/test/omf_rc/cmd_spec.rb
@@ -6,8 +6,12 @@
describe "when use util file to execute a system command" do
include EM::MiniTest::Spec
- it "must return result and not print anything to stdout if executed successfully" do
- skip
+ it "must return result eventually" do
+ OmfRc::Cmd.exec("uname -a") do |result|
+ result[:success].wont_be_empty
+ done!
+ end
+ wait!
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.