Sha256: 70ab064a1d954b63c303b58bfbc72d39fc02e3a9823249f1b54d9d4cf081bb5f
Contents?: true
Size: 699 Bytes
Versions: 14
Compression:
Stored size: 699 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' shared_examples_for "Iq Query Stanzas" do it "should have the right type" do IqQueryStanza.new(@params).type.should == @params[:type] end it "should have the right to" do IqQueryStanza.new(@params).to.should == "firehoser.superfeedr.com" end it "should have a random id" do IqQueryStanza.new(@params).id.should match /[0..9]*/ end it "should have the right from" do IqQueryStanza.new(@params).from.should == @params[:from] end end describe IqQueryStanza do before(:each) do @params = { :type => "set", :from => "me@server.com/resource"} end it_should_behave_like "Iq Query Stanzas" end
Version data entries
14 entries across 14 versions & 3 rubygems