Sha256: fcdaf10c4a9486ba53cd704c61a5623159364f8c0257487d7895d8850b73c7ff
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true require 'capybara/dsl' module Balboa module Interactor module Command class LastPunchCommand include Capybara::DSL def execute punches_path find_last_punch_date end private def punches_path visit('/punches') end def find_last_punch_date find('tbody tr:first-child td:nth-child(2)').text end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
balboa-0.1.1 | lib/balboa/interactor/command/last_punch_command.rb |
balboa-0.1.0 | lib/balboa/interactor/command/last_punch_command.rb |