Sha256: fd1d2f68b32d134438329ea68d8e62a146f127e6a437665d14b5d61ef10b0be4
Contents?: true
Size: 721 Bytes
Versions: 15
Compression:
Stored size: 721 Bytes
Contents
require "spec_helper" include Rmpd describe Rmpd::Response do before(:each) do data = ["foo: bar", "OK"] @response = Rmpd::Response.factory("status").parse(data) end it "should have a foo method" do @response.respond_to?(:foo).should be_true @response.foo.should == "bar" end it "should have a foo key" do @response.should include("foo") @response["foo"].should == "bar" end it "should be ok" do # @response.should be_ok # doesn't work correctly, see rspec bug #11526 @response.ok?.should == true end it "should not be ack" do # @response.should_not be_ack # doesn't work correctly, see rspec bug #11526 @response.ack?.should_not == true end end
Version data entries
15 entries across 15 versions & 1 rubygems