Sha256: 6ae28fd06a7707bb31a3e9433d381f2fb2d346d1932cbcae5a93cc788bd4beea

Contents?: true

Size: 933 Bytes

Versions: 8

Compression:

Stored size: 933 Bytes

Contents

require 'spec_helper'

describe Galakei::RouteConstraints::GalakeiOnly do
  describe "from Firefox" do
    let(:req) { Rack::Request.new(env_for_firefox) }
    it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_false }
  end
  describe "from Docomo SH-06A" do
    let(:req) { Rack::Request.new(env_for_docomo_1_0) }
    it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
  end
  describe "from AU W54SH" do
    let(:req) { Rack::Request.new(env_for_au_7_2) }
    it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
  end
  describe "from Vodafone" do
    let(:req) { Rack::Request.new(env_for_vodafone) }
    it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
  end
  describe "from Softbank 709SC" do
    let(:req) { Rack::Request.new(env_for_softbank) }
    it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
galakei-0.15.2 spec/galakei/route_constraints/galakei_only.rb
galakei-0.15.1 spec/galakei/route_constraints/galakei_only.rb
galakei-0.15.0 spec/galakei/route_constraints/galakei_only.rb
galakei-0.14.4 spec/galakei/route_constraints/galakei_only.rb
galakei-0.14.3 spec/galakei/route_constraints/galakei_only.rb
galakei-0.14.2 spec/galakei/route_constraints/galakei_only.rb
galakei-0.14.1 spec/galakei/route_constraints/galakei_only.rb
galakei-0.14.0 spec/galakei/route_constraints/galakei_only.rb