I hereby claim:
- I am ameuret on github.
- I am arnaudm (https://keybase.io/arnaudm) on keybase.
- I have a public key ASDnOFChad3ZpfJQBMoH81__7Qd4DZktk9EwYAMCoQBU3Ao
To claim this, I am signing this object:
from bezier import * | |
class AFewQuads: | |
list = [] | |
a = Point(231.5, 132.3) | |
# curveto | |
a = Point(231.5, 132.3) | |
b = Point(251.3, 135.5) | |
c = Point(272.9, 120.3) | |
d = Point(277.2, 94.0) | |
list.append(BezierQuad(a, b, c, d)) |
class AFewQuads: | |
list = [] | |
a = Point(231.5, 112.5) | |
# curveto | |
a = Point(231.5, 112.5) | |
b = Point(251.3, 116.0) | |
c = Point(272.9, 99.5) | |
d = Point(277.2, 71.0) | |
list.append(BezierQuad(a, b, c, d)) | |
# curveto |
I hereby claim:
To claim this, I am signing this object:
You will probably need to clean your database between some (or each) of yours test cases/scenarios.
When running Capybara+PhantomJS, using table truncation is preferred since transactions are not shared between the test process and the browser process.
This means that you need to authorize the app account to truncate the appropriate tables. In the database setup transactions, this can be done for the accounts
table with:
run "GRANT TRUNCATE ON account_password_hashes TO #{user}"
Make sure that you do the same for each table created by the Rodauth features you have enabled, e.g. here for the disallow_password_reuse
feature:
DB.schema(:persons)[6] | |
[:preferred, | |
{:allow_null=>true, | |
:default=>nil, | |
:db_type=>"Boolean", | |
:primary_key=>false, | |
:type=>:boolean, | |
:ruby_default=>nil}] |
include CapybaraAccessories | |
# This step occurs after an item was added to the cart through XHR | |
# It must wait for the call to return and for the UI to update. | |
# A badge must become visible and contain the number of items in cart. | |
# Without this kind of wait code Capybara's waiting features (2.2.1) | |
# still miss the update and fail the test. | |
Then(/^I see a caddie badge with (\d+) item\(s\)$/) do |count| | |
wait_for{page.find('#count')}.should have_content(count) |
require 'sequel' | |
DB = Sequel.sqlite | |
DB.create_table :mimetype do | |
primary_key :id | |
column :mimetype, :text, :unique=>true | |
column :extension, :text | |
end |
describe M2Config do | |
before(:each) do | |
File.delete DEFAULT_DB_NAME rescue | |
@cfg = M2Config.new | |
end | |
end |
Scenario: Locate a running agent | |
Given an ssh agent has been launched without parameters | |
When I run `ssh-locate` | |
Then the output should contain "SSH_AUTH_SOCK=" | |
And the output should contain "export SSH_AUTH_SOCK;" | |
And the output should contain "SSH_AGENT_PID=" | |
And the output should contain "export SSH_AGENT_PID;" | |
And the output should contain the correct agent PID | |
And the output should contain the correct agent socket | |