I hereby claim:
- I am cbernaut on github.
- I am bryandl (https://keybase.io/bryandl) on keybase.
- I have a public key ASCCx_gjhMIEF97Hr4UFk-KuOdo0cFF-3bCnnkz38I8mAAo
To claim this, I am signing this object:
| #include <WiFi.h> | |
| #include <WebServer.h> | |
| int relayInput = 2; // the input to the relay pin | |
| char wifiSsid[] = "WIFI_SSID"; | |
| char wifiPass[] = "WIFI_PASSWORD"; | |
| char authCode[] = "YOUR_SECRET_HEADER_KEY"; | |
| int serverPort = PORT; |
| class User < ApplicationRecord | |
| #... | |
| def send_mailer_user_report | |
| UserReportMailer.new(self).send() | |
| end | |
| #... | |
| end |
| # spec/models/user_spec.rb | |
| describe User do | |
| describe 'methods' do | |
| describe 'instance' do | |
| describe '#send_mailer_user_report' do | |
| it 'sends a UserReportMailer for itself' | |
| end | |
| end | |
| end |
| # spec/models/user_spec.rb | |
| describe User do | |
| describe 'methods' do | |
| describe 'instance' do | |
| describe '#send_mailer_user_report' do | |
| it 'sends a UserReportMailer for itself' do | |
| expect(any_instance_of(UserReportMailer)).to_receive(:send).once | |
| user = FactoryBot.build(:user) | |
| user.send_mailer_user_report |
I hereby claim:
To claim this, I am signing this object: