airbrake-ruby 1.4.0 → 1.4.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.
- checksums.yaml +4 -4
- data/lib/airbrake-ruby/config.rb +1 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/config_spec.rb +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2649182552b42388d488153498cd971ffa2c7ca1
|
4
|
+
data.tar.gz: 2d8eb9a2e0e54e8784e8f9204545519456f4b87c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0b5e3f1bb6d74d84a619bfeb416688cbb7c773b14f9328365c800aa0b8532673ef58727991dd1e035256e6018f8d12186bc37ce2effc9d5ee5e10018210efbb
|
7
|
+
data.tar.gz: c413d29e92a294952a73db358a7a62949075ab4d6bb5ed5b6295f7682517285d601e32bf93ed6fb2641fd6610ea2822e8b0e760d207d6c9033ced88aa5b919fb
|
data/lib/airbrake-ruby/config.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -120,15 +120,24 @@ RSpec.describe Airbrake::Config do
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
-
context "when the project_id value is not
|
123
|
+
context "when the project_id value is not a number" do
|
124
124
|
it "returns false" do
|
125
|
-
config.project_id = '
|
125
|
+
config.project_id = 'bingo'
|
126
126
|
config.project_key = '321'
|
127
127
|
|
128
128
|
expect(config).not_to be_valid
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
132
|
+
context "when the project_id value is a String number" do
|
133
|
+
it "returns true" do
|
134
|
+
config.project_id = '123'
|
135
|
+
config.project_key = '321'
|
136
|
+
|
137
|
+
expect(config).to be_valid
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
132
141
|
context "when the project_key value is not a String" do
|
133
142
|
it "returns false" do
|
134
143
|
config.project_id = 123
|