We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8040fc8 commit 1c64754Copy full SHA for 1c64754
spec/lib/detect_language/configuratino_spec.rb
@@ -0,0 +1,21 @@
1
+# frozen_string_literal: true
2
+
3
+RSpec.describe DetectLanguage::Configuration do
4
+ describe '#api_key' do
5
+ it 'returns the api key' do
6
+ expect(subject.api_key).to be_nil
7
+ end
8
9
10
+ describe '#base_url' do
11
+ it 'returns the base url' do
12
+ expect(subject.base_url).to eq('https://ws.detectlanguage.com/v3/')
13
14
15
16
+ describe '#user_agent' do
17
+ it 'returns the user agent' do
18
+ expect(subject.user_agent).to eq("detectlanguage-ruby/#{DetectLanguage::VERSION}")
19
20
21
+end
0 commit comments