Skip to content

Commit

Permalink
Find out the magic of EM minitest spec...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack C Hong committed May 9, 2012
1 parent dbf2fc0 commit c7a3559
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 0 additions & 4 deletions omf_rc/lib/omf_rc/cmd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions omf_rc/test/omf_rc/cmd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.