fix stub. reverted back to controller_name

This commit is contained in:
johnmcaliley 2013-05-07 20:49:45 -04:00
parent 2782fd8365
commit c8127c43a6
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ describe DummyController do
it "should recognize uniqueness" do it "should recognize uniqueness" do
impressionable = Post.create impressionable = Post.create
controller.stub!(:controller_path).and_return("posts") # for correct impressionable type in filter controller.stub!(:controller_name).and_return("posts") # for correct impressionable type in filter
controller.stub!(:params).and_return({:id => impressionable.id.to_s}) # for correct impressionable id in filter controller.stub!(:params).and_return({:id => impressionable.id.to_s}) # for correct impressionable id in filter
controller.stub!(:session_hash).and_return("foo") controller.stub!(:session_hash).and_return("foo")
controller.request.stub!(:remote_ip).and_return("1.2.3.4") controller.request.stub!(:remote_ip).and_return("1.2.3.4")