Sha256: 90c58a5d0f0a2623cee5f2a3cd6bf5447ea970a5c3c06425092445c1928871b8
Contents?: true
Size: 722 Bytes
Versions: 24
Compression:
Stored size: 722 Bytes
Contents
require 'spec_helper' describe DispatchLinksController do fixtures :all before do @dispatch_link = dispatch_links(:google) end it "should record a click" do lambda { get 'show', :id => @dispatch_link.position, :dispatch_id => @dispatch_link.dispatch_id }.should change(DispatchLinkClick, :count).by(1) end it "should redirect" do get 'show', :id => @dispatch_link.position, :dispatch_id => @dispatch_link.dispatch_id response.should redirect_to(@dispatch_link.uri) end it "should be nested" do dispatch_link_path(@dispatch_link.dispatch_id, @dispatch_link.position).should == "/dispatches/#{@dispatch_link.dispatch_id}/links/#{@dispatch_link.position}" end end
Version data entries
24 entries across 24 versions & 1 rubygems