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&amp;p=param">STRING</a>}
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
jpmobile-3.0.9 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-4.0.1 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-4.1.0 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.8 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-4.1.0.rc1 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-4.0.0 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.7 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-2.0.11 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-1.0.12 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-1.0.11 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-2.0.10 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.6 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-1.0.10 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-2.0.9 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.5 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-1.0.9 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-2.0.8 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.4 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.3 test/rails/overrides/spec/helpers/helpers_spec.rb
jpmobile-3.0.2 test/rails/overrides/spec/helpers/helpers_spec.rb