Sha256: 4caa6a447155f1f23138083b0a417a986c54fc9eec814790a781b3741e9e83ad
Contents?: true
Size: 830 Bytes
Versions: 22
Compression:
Stored size: 830 Bytes
Contents
require 'rails_helper' describe Jpmobile::Helpers, type: :helper do include Jpmobile::Helpers include Rails.application.routes.url_helpers it 'docomo_guid_link_to が guid=ON を付けたリンクを生成すること' do expect(docomo_guid_link_to('STRING', host: 'jpmobile.info', controller: 'filter', action: 'rawdata')).to eq(%(<a href="http://jpmobile.info/filter/rawdata?guid=ON">STRING</a>)) end it 'softbank_location_link_to がリンク先にパラメータを含んでいても正常に動作すること' do # http://d.hatena.ne.jp/mizincogrammer/20090123/1232702067 expect(softbank_location_link_to('STRING', host: 'jpmobile.info', controller: 'filter', action: 'rawdata', p: 'param')).to eq(%(<a href="location:auto?url=http://jpmobile.info/filter/rawdata&p=param">STRING</a>)) end end
Version data entries
22 entries across 22 versions & 1 rubygems