# reference manual test
File.exist?(File.join(File.dirname(__FILE__), '../reference/rubyrefm-remix-2.2.chm')) or raise "reference manual is not correctly installed."
# Major binary gem test - nokogiri
system "gem install nokogiri" or raise "nokogiri gem install failed."
system 'ruby -r nokogiri -e "puts %Q|nokogiri loading - OK|"' or raise "nokogiri gem loading test is failed."
# Major binary gem test - mysql2
system "gem install mysql2" or raise "mysql2 gem install failed."
system 'ruby -r mysql2 -e "puts %Q|mysql2 loading - OK|"' or raise "mysql2 gem loading test is failed."
# Major binary gem test - pg
system "gem install pg" or raise "pg gem install failed."
system 'ruby -r pg -e "puts %Q|pg loading - OK|"' or raise "pg gem loading test is failed."
# Major binary gem test - listen
system "gem install listen" or raise "listen gem install failed."
system 'ruby -r listen -e "puts %Q|listen loading - OK|"' or raise "listen gem loading test is failed."
# Major binary gem test - wdm
system "gem install wdm" or raise "wdm gem install failed."
system 'ruby -r wdm -e "puts %Q|wdm loading - OK|"' or raise "wdm gem loading test is failed."
# Major binary gem test - guard
system "gem install guard" or raise "guard gem install failed."
system 'ruby -r guard -e "puts %Q|guard loading - OK|"' or raise "guard gem loading test is failed."
# Major binary gem test - eventmachine
system "gem install eventmachine" or raise "eventmachine gem install failed."
system 'ruby -r eventmachine -e "puts %Q|eventmachine loading - OK|"' or raise "eventmachine gem loading test is failed."
# Major binary gem test - msgpack
system "gem install msgpack" or raise "msgpack gem install failed."
system 'ruby -r msgpack -e "puts %Q|msgpack loading - OK|"' or raise "msgpack gem loading test is failed."
