-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added subdomain non-case-sensitive fix
- Loading branch information
George Zhukov
committed
Sep 8, 2016
1 parent
56a1c38
commit 3241a9e
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require 'spec_helper' | ||
|
||
RSpec.describe Detectify::QueryBuilder::Base do | ||
let(:domain) { 'DOMAIN' } | ||
let(:subdomain) { 'SUBDOMAIN' } | ||
subject { Detectify::QueryBuilder::Base.new(domain, subdomain) } | ||
|
||
describe '#initialize' do | ||
it 'sets domain in downcase' do | ||
expect(subject.domain).to eq(domain.downcase) | ||
end | ||
|
||
it 'sets subdomain in downcase' do | ||
expect(subject.subdomain).to eq(subdomain.downcase) | ||
end | ||
end | ||
end |