mailcannon 0.0.8 → 0.1.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe MailCannon::Airbrake do
4
- before(:each) do
5
- ENV['AIRBRAKE_TOKEN']=nil
6
- end
7
- after(:each) do
8
- ENV['AIRBRAKE_TOKEN']=nil
9
- end
10
- describe "#available?" do
11
- context 'when Airbrake token is NOT in the ENV' do
12
- it "returns false" do
13
- expect(MailCannon::Airbrake.available?).to be_false
14
- end
15
- end
16
- context 'when Airbrake token IS in the ENV' do
17
- it "returns false" do
18
- ENV['AIRBRAKE_TOKEN']='a.token'
19
- expect(MailCannon::Airbrake.available?).to be_true
20
- end
21
- end
22
- end
23
- end
@@ -1,24 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe MailCannon::Librato do
4
- after(:each) do
5
- ENV['LIBRATO_USER']=nil
6
- ENV['LIBRATO_TOKEN']=nil
7
- end
8
- describe "#available?" do
9
- context 'when Librato info is NOT in the ENV' do
10
- it "returns false" do
11
- ENV['LIBRATO_USER']=nil
12
- ENV['LIBRATO_TOKEN']=''
13
- expect(MailCannon::Librato.available?).to be_false
14
- end
15
- end
16
- context 'when Librato info IS in the ENV' do
17
- it "returns false" do
18
- ENV['LIBRATO_USER']='tha.user'
19
- ENV['LIBRATO_TOKEN']='tha.password'
20
- expect(MailCannon::Librato.available?).to be_true
21
- end
22
- end
23
- end
24
- end