Permalink
Browse files

Added tests for redirect_url

  • Loading branch information...
1 parent 3bbd32d commit c02bf11a0ab81b8ab2afd9a6fbf28aa693358108 @janjiss janjiss committed Jan 8, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/active_merchant/billing/first_data_gateway_spec.rb
@@ -685,6 +685,13 @@
end
end
+ it "26) return correct redirect url with transaction id" do
+ @gateway.redirect_url.should == @gateway.test_redirect_url
+ end
+
+ it "27) return correct redirect url without transaction id" do
+ @gateway.redirect_url("2SGip+TK/dVYe+XMSeQuECMs//S=").should == @gateway.test_redirect_url + "?trans_id=2SGip%2BTK%2FdVYe%2BXMSeQuECMs%2F%2FS%3D"
+ end
end
def submit_form(url, params, cassette_prefix)

0 comments on commit c02bf11

Please sign in to comment.