Sha256: 1e0af5dd7d5d183fb98a799e678d2cb4a7101fb8c21eebc10c2586365bd0ff14
Contents?: true
Size: 518 Bytes
Versions: 14
Compression:
Stored size: 518 Bytes
Contents
require 'spec_helper' require 'apartment/elevators/first_subdomain' describe Apartment::Elevators::FirstSubdomain do describe "subdomain" do subject { described_class.new("test").parse_tenant_name(request) } let(:request) { double(:request, :host => "#{subdomain}.example.com") } context "one subdomain" do let(:subdomain) { "test" } it { should == "test" } end context "nested subdomains" do let(:subdomain) { "test1.test2" } it { should == "test1" } end end end
Version data entries
14 entries across 14 versions & 1 rubygems