mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-17 20:31:33 +00:00
fix spec
This commit is contained in:
parent
cffd6dc48a
commit
92aadb7892
1 changed files with 4 additions and 4 deletions
|
@ -74,13 +74,13 @@ shared_examples_for WebRequestConcern do
|
|||
ENV['DEFAULT_HTTP_USER_AGENT'] = @default_http_user_agent
|
||||
end
|
||||
|
||||
it "should have the default value set by Faraday" do
|
||||
expect(agent.user_agent).to eq(Faraday.new.headers[:user_agent])
|
||||
it "should have the default value of Huginn" do
|
||||
expect(agent.user_agent).to eq('Huginn - https://github.com/cantino/huginn')
|
||||
end
|
||||
|
||||
it "should be overridden by the environment variable if present" do
|
||||
ENV['DEFAULT_HTTP_USER_AGENT'] = 'Huginn - https://github.com/cantino/huginn'
|
||||
expect(agent.user_agent).to eq('Huginn - https://github.com/cantino/huginn')
|
||||
ENV['DEFAULT_HTTP_USER_AGENT'] = 'Something'
|
||||
expect(agent.user_agent).to eq('Something')
|
||||
end
|
||||
|
||||
it "should be overriden by the value in options if present" do
|
||||
|
|
Loading…
Add table
Reference in a new issue