Sha256: 18dc75d7086905d07735585b9106f4165e09e3362afe1ebb74c1ed95639f7c23
Contents?: true
Size: 730 Bytes
Versions: 8
Compression:
Stored size: 730 Bytes
Contents
require 'rails_helper' describe Jpmobile::Helpers, :type => :helper do include Jpmobile::Helpers it "docomo_guid_link_to が guid=ON を付けたリンクを生成すること" do expect(docomo_guid_link_to("STRING", :controller => "filter", :action => "rawdata")).to eq(%{<a href="/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", :controller => "filter", :action => "rawdata", :p => "param")).to eq(%{<a href="location:auto?url=http://test.host/filter/rawdata&p=param">STRING</a>}) end end
Version data entries
8 entries across 8 versions & 1 rubygems