Created
August 18, 2019 00:44
-
-
Save stephancom/16ba1288484e29fae6f37e210c1f9c55 to your computer and use it in GitHub Desktop.
blink(1) rspec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'blink1' | |
RSpec.configure do |config| | |
config.around(:each) do |example| | |
Blink1.open do |blink1| | |
blink1.set_rgb(0, 0, 255) | |
example.run | |
blink1.set_rgb(255, 255, 0) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment