Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created June 10, 2011 10:37
Show Gist options
  • Save JakubOboza/1018603 to your computer and use it in GitHub Desktop.
Save JakubOboza/1018603 to your computer and use it in GitHub Desktop.
describe "Affiliate Window Integration" do
it "should store in cookies affiliate window code" do
controller.should_receive(:affiliate_window_code_handler)
get :new, "awc" => "this-is-test-code"
cookies["awc"].should_not be_nil
cookies["awc"].should eql("this-is-test-code")
response.should be_success
end
end
F...................
1)
'OrdersController Affiliate Window Integration should store in cookies affiliate window code' FAILED
expected not nil, got nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment