spec/pagseguro/notification_spec.rb in pagseguro-0.1.8 vs spec/pagseguro/notification_spec.rb in pagseguro-0.1.9.beta.0

- old
+ new

@@ -281,27 +281,10 @@ Net::HTTP.should_receive(:new).and_return(mock("http").as_null_object) Net::HTTP::Post.should_receive(:new).and_return(post) @notification.valid? end - - it "should propagate params in ISO-8859-1" do - param!("CliNome", "João Doão") - PagSeguro.stub!(:config).and_return("authenticity_token" => "ABCDEF") - - post = mock("post").as_null_object - post.should_receive(:set_form_data).with({ - :Comando => "validar", - :Token => "ABCDEF", - "CliNome" => to_iso("João Doão") - }) - - Net::HTTP.should_receive(:new).and_return(mock("http").as_null_object) - Net::HTTP::Post.should_receive(:new).and_return(post) - - @notification.valid? - end end private def set_status!(value) param!("StatusTransacao", value) @@ -311,13 +294,9 @@ param!("TipoPagamento", value) end def param!(name, value) @notification.params.merge!(name => value) - end - - def to_iso(str) - str.unpack('U*').pack('C*') end def set_product!(options={}) @__products ||= []