Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Oct 5, 2014
1 parent cffd6dc commit 92aadb7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/support/shared_examples/web_request_concern.rb
Expand Up @@ -74,13 +74,13 @@
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
Expand Down

0 comments on commit 92aadb7

Please sign in to comment.