Spec out Thrift::Client
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668941 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/exception_spec.rb b/lib/rb/spec/exception_spec.rb
index d16c7f8..c437a63 100644
--- a/lib/rb/spec/exception_spec.rb
+++ b/lib/rb/spec/exception_spec.rb
@@ -1,15 +1,15 @@
require File.dirname(__FILE__) + '/spec_helper'
-module Thrift
+class ThriftSpec < Spec::ExampleGroup
+ include Thrift
+
describe Exception do
it "should have an accessible message" do
e = Exception.new("test message")
e.message.should == "test message"
end
end
-end
-module Thrift
describe ApplicationException do
it "should inherit from Thrift::Exception" do
ApplicationException.superclass.should == Exception