test/test.rb in procemon-0.3.1 vs test/test.rb in procemon-0.3.2

- old
+ new

@@ -1,17 +1,22 @@ # Require Gemfile gems -require 'grape' require_relative "../lib/procemon" -Grape::API.inject_singleton_method :inherited, add: "after" do |subclass| - subclass.class_eval do +test1 = async { - before do - puts "hello world!" - end + sleep 8 + hello= 14 + sup= "the world is yours" - end + sup -end +} -puts "hello".binding? +test2 = async { + sleep(4) + "world" +} + +start_time= Time.now +puts test1.value == test2.value +puts Time.now-start_time \ No newline at end of file