Sha256: f87d4c3dec96d38ed095c79b5f7f0836321559864fd49123857ebc349b27757f
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SufiaHelper do describe "link_to_profile" do it "should use User#to_params" do u = User.new u.stub(:user_key).and_return('justin@example.com') User.should_receive(:find_by_user_key).with('justin@example.com').and_return(u) helper.link_to_profile('justin@example.com').should == "<a href=\"/users/justin@example-dot-com\">justin@example.com</a>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-3.0.0 | spec/helpers/sufia_helper_spec.rb |