Skip to content

Commit d425dec

Browse files
authored
Merge pull request #131 from annzenkina/patch-1
Cleanup dirty state of ENV variable
2 parents 7487db2 + 9b27c24 commit d425dec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/client_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
end
110110

111111
describe 'configuring from env' do
112+
after do
113+
ENV['PUSHER_URL'] = nil
114+
end
115+
112116
it "works" do
113117
url = "http://somekey:somesecret@api.staging.pusherapp.com:8080/apps/87"
114118
ENV['PUSHER_URL'] = url
@@ -118,7 +122,6 @@
118122
expect(client.secret).to eq("somesecret")
119123
expect(client.app_id).to eq("87")
120124
expect(client.url.to_s).to eq("http://api.staging.pusherapp.com:8080/apps/87")
121-
ENV['PUSHER_URL'] = nil
122125
end
123126
end
124127

0 commit comments

Comments
 (0)