dir = File.dirname(__FILE__) require 'rubygems' require 'fakeweb' require 'rr' require 'json' require "#{dir}/spec_core_extensions" require "#{dir}/../lib/messagebus_ruby_api" def json_valid_send json = <