I hereby claim:
- I am ianvaughan on github.
- I am ianvaughan (https://keybase.io/ianvaughan) on keybase.
- I have a public key ASBmI8mXmSPZzrv-iV4qgzMzeyHiWyoNmEEn7GnQHkViOAo
To claim this, I am signing this object:
require 'rails_helper' | |
RSpec.feature 'User signup flow', :js do | |
scenario 'Visits home page to signup' do | |
puts "*** Capybara start ***" | |
visit root_path | |
new_window = window_opened_by { click_link 'Sign Up', match: :first } | |
within_window new_window do | |
expect(page).to have_text('New Enquiry', wait: 5) |
# on heroku ci dyno via: heroku ci:debug --pipeline release-pipeline | |
~ $ bundle exec rspec spec/features/ | |
CI:true | |
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/schema/mutation.rb:71: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/schema/member/has_fields.rb:11: warning: The called method `field' is defined here | |
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call | |
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:259: warning: The called method `initialize_node' is defined here | |
/app/vendor/bundle/ruby/2.7.0/gems/graphql-1.9.17/lib/graphql/language/nodes.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call |
User signup flow | |
*** Capybara start *** | |
javascript_driver: headless_chrome | |
current_driver: headless_chrome | |
default_driver: rack_test | |
Capybara starting Puma... | |
* Version 3.12.2 , codename: Llamas in Pajamas | |
* Min threads: 0, max threads: 4 | |
* Listening on tcp://127.0.0.1:46320 | |
/app/vendor/bundle/ruby/2.7.0/gems/webmock-3.7.6/lib/webmock/http_lib_adapters/net_http.rb:271: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call |
User signup flow | |
*** Selenium start *** | |
Selenium (FAILED - 1) | |
*** Capybara start *** | |
javascript_driver: selenium_chrome_headless | |
current_driver: selenium_chrome_headless | |
default_driver: rack_test | |
Capybara starting Puma... | |
* Version 3.12.2 , codename: Llamas in Pajamas | |
* Min threads: 0, max threads: 4 |
Capybara starting Puma... | |
* Version 3.12.2 , codename: Llamas in Pajamas | |
* Min threads: 0, max threads: 4 | |
* Listening on tcp://127.0.0.1:35419 | |
2020-01-13 19:32:01 DEBUG Webdrivers Checking current version | |
2020-01-13 19:32:01 DEBUG Webdrivers /app/.webdrivers/chromedriver is not already downloaded | |
2020-01-13 19:32:01 DEBUG Webdrivers Selenium::WebDriver::Chrome.path: /app/.apt/usr/bin/google-chrome-stable | |
2020-01-13 19:32:01 DEBUG Webdrivers making System call: ["/app/.apt/usr/bin/google-chrome-stable", "--product-version"] | |
2020-01-13 19:32:01 DEBUG Webdrivers System call returned: 79.0.3945.117 |
I hereby claim:
To claim this, I am signing this object:
# gem install tty-prompt | |
# gem install tty-command | |
require 'tty-prompt' | |
require 'tty-command' | |
require 'thor' | |
require 'pry' | |
class MyCLI < Thor | |
class_option :env, type: :string, default: ENV['K8S_ENV'] |
#!/usr/bin/env ruby | |
# Usage : | |
# In slack `/todo list` | |
# Copy output, pipe into this script | |
file = ARGV[0] | |
data = File.read(file) | |
# sed -e 's/.*`\(.*\)`.*/git merge --no-edit --no-ff origin\/\1/' | |
FIND = /.*`(.*)`.*/ |
defmodule CallsProcess do | |
use GenServer | |
def start_link(state) do | |
GenServer.start_link(__MODULE__, state, name: __MODULE__) | |
end | |
def init(state), do: {:ok, state} | |
def handle_call(:test, _from, %{call_timeout: call_timeout} = state) do |
defmodule CallsProcessOnTimeout do | |
use GenServer | |
def start_link(opts) do | |
self() |> IO.inspect(label: "#{__MODULE__}.start_link") | |
GenServer.start_link(__MODULE__, opts, name: __MODULE__) | |
end | |
def init(opts) do | |
self() |> IO.inspect(label: "#{__MODULE__}.init returing :ok, pid") |