spec/unit/cassanity/client_spec.rb in cassanity-0.6.0.beta3 vs spec/unit/cassanity/client_spec.rb in cassanity-0.6.0.beta4
- old
+ new
@@ -123,9 +123,18 @@
client = described_class.new
client.disconnect
end
end
+ describe "#connected?" do
+ it "returns connected? value for driver" do
+ driver.should_receive(:connected?).and_return(true)
+
+ client = described_class.new
+ client.connected?.should be_true
+ end
+ end
+
describe "#inspect" do
it "return representation" do
result = subject.inspect
result.should match(/#{described_class}/)
result.should match(/driver=/)