summaryrefslogtreecommitdiffstats
path: root/spec/eina_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/eina_spec.rb')
-rw-r--r--spec/eina_spec.rb7
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