Permalink
Browse files

Find out the magic of EM minitest spec...

  • Loading branch information...
Jack C Hong
Jack C Hong committed May 9, 2012
1 parent dbf2fc0 commit c7a3559373ce51f5b4a0c7a60ecea421bc67ca9f
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
@@ -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
@@ -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

0 comments on commit c7a3559

Please sign in to comment.