- run
ruby credit_check_test.rb
- Make sure you have installed Pry (
gem install pry)
| # vim <filename.ext> --startuptime <log-file> | |
| # eg. vim hello_world.rb --startuptime vim.log | |
| ================ Output ================ | |
| times in msec | |
| clock self+sourced self: sourced script | |
| clock elapsed: other lines | |
| 000.008 000.008: --- VIM STARTING --- |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # Partner: Chris Luhring, @cluhring | |
| require_relative "custom_array" | |
| RSpec.describe "CustomArray" do | |
| it "can flatten some custom array of numbers" do | |
| c = CustomArray.new([[1,2],[3,[4,5]]]) | |
| expect(c.flatten).to eq([1, 2, 3, 4, 5]) | |
| end |
| class Tmux < Formula | |
| desc "Terminal multiplexer" | |
| homepage "https://tmux.github.io/" | |
| url "https://github.com/tmux/tmux/releases/download/2.1/tmux-2.1.tar.gz" | |
| sha256 "31564e7bf4bcef2defb3cb34b9e596bd43a3937cad9e5438701a81a5a9af6176" | |
| bottle do | |
| cellar :any | |
| sha256 "165ad1037a3993fd12c745cdf77bdd31133c0e13188ede37096532dddb5591c6" => :el_capitan | |
| sha256 "44f62e8bed576ac82d5e2f768a6f3c6efb86fe7e45b37873d137294c8ef887b6" => :yosemite |
"You should sit in meditation for 20 minutes a day, unless you're too busy; then you should sit for an hour.”
I was writing a test that would click on a checkbox element
describe(`checkbox unchecked`, () => {
it(`should remove the answer if the checkbox is unchecked`, () => {
var form = angular.element(`<form name="form">
<div gi-checkbox-optional="answer"
gi-form-model="form">This may be more of a misunderstanding with my knowledge of how HTML works rather than a bug in angular-translate:
When I create a <label> that wraps an <input>
<label translate="APP.PURCHASE_ORDER_DETAILS.PURCHASE_ORDER_DETAILS_DIALOG.VENDOR_ID_INPUT_LABEL">
<input class="vendor-id-input" type="text">
</label>