mailcannon 0.0.8 → 0.1.0.pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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