only run the EM specs if EM is installed

This commit is contained in:
Brian Lopez 2010-10-17 17:34:34 -07:00
parent 3b6229771a
commit 410e914411

View File

@ -1,4 +1,5 @@
# encoding: UTF-8 # encoding: UTF-8
if defined? EventMachine
require 'spec_helper' require 'spec_helper'
require 'mysql2/em' require 'mysql2/em'
@ -43,3 +44,6 @@ describe Mysql2::EM::Client do
results[1].keys.should include("second_query") results[1].keys.should include("second_query")
end end
end end
else
puts "EventMachine not installed, skipping the specs that use it"
end