Sha256: 5b88167b360c96d334d33cec2ec1e929a315fa8602e7d5173b35a50ee30b628d
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Jpmobile::Helpers do include Jpmobile::Helpers it "docomo_guid_link_to が guid=ON を付けたリンクを生成すること" do docomo_guid_link_to("STRING", :controller => "MyController", :action => "myaction").should == %{<a href="/mycontroller/myaction?guid=ON">STRING</a>} end it "softbank_location_link_to がリンク先にパラメータを含んでいても正常に動作すること" do # http://d.hatena.ne.jp/mizincogrammer/20090123/1232702067 softbank_location_link_to("STRING", :controller => "MyController", :action => "myaction", :p => "param").should == %{<a href="location:auto?url=http://test.host/mycontroller/myaction&p=param">STRING</a>} end end
Version data entries
4 entries across 2 versions & 1 rubygems