diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-14 10:05:32 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-14 10:05:32 +0200 |
commit | 1f277e69ff68ea2a07f5311c6cb10818dfbe8bd4 (patch) | |
tree | d731c0e027a4c8026fb8301b5e70b3b1d1e55d89 /spec | |
parent | 9c04104fdb3889f8096fcc38718551961932c802 (diff) | |
download | ffi-efl-1f277e69ff68ea2a07f5311c6cb10818dfbe8bd4.zip ffi-efl-1f277e69ff68ea2a07f5311c6cb10818dfbe8bd4.tar.gz |
eina_main_loop_is + specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/eina_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/eina_spec.rb b/spec/eina_spec.rb index d3db081..296b941 100644 --- a/spec/eina_spec.rb +++ b/spec/eina_spec.rb @@ -17,6 +17,13 @@ describe "Efl::Eina #{Efl::Eina.version.full}" do Efl::Eina.init.should == @i+3 end # + it "should be main thread" do + Efl::Eina.main_loop_is.should be_true + Thread.new do + Efl::Eina.main_loop_is.should be_false + end.join + end + # it "should shutdown" do Efl::Eina.shutdown.should == @i+2 Efl::Eina.shutdown.should == @i+1 |