I hereby claim:
- I am uepsilon on github.
- I am uepsilon (https://keybase.io/uepsilon) on keybase.
- I have a public key whose fingerprint is ADCF D78D 4B15 C5F6 B334 5491 EA87 B749 056E F4EE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import time | |
import RPi.GPIO as GPIO | |
try: | |
# Set Mode to BCM | |
GPIO.setmode(GPIO.BOARD) | |
# Define output LEDs | |
GPIO.setup(11, GPIO.OUT, initial=GPIO.LOW) | |
GPIO.setup(13, GPIO.OUT, initial=GPIO.LOW) |
context "with valid params" do | |
before(:each, :skip_request => false) { post :create, user: attributes_for(:user) } | |
it "should increase Usercount by 1", skip_request: true do | |
expect { | |
post :create, user: attributes_for(:user) | |
}.to change(User, :count).by(1) | |
end | |
it { should redirect_to(:admin_users) } |