Sha256: 8d8ca63d43df5750f9353cab2f45bd0536f8091056557fb203a57bc6f4118d59
Contents?: true
Size: 782 Bytes
Versions: 44
Compression:
Stored size: 782 Bytes
Contents
# -*- coding: utf-8 -*- require File.expand_path(File.join(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 => "filter", :action => "rawdata").should == %{<a href="/filter/rawdata?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 => "filter", :action => "rawdata", :p => "param").should == %{<a href="location:auto?url=http://test.host/filter/rawdata&p=param">STRING</a>} end end
Version data entries
44 entries across 44 versions & 1 rubygems