#!/usr/bin/env ruby # frozen_string_literal: true require 'thor' $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'generic_test' # Executable for Generic Test class Exe < Thor desc 'page page_url', 'Test web page' def page(page_url) ENV['PAGE_URL'] = page_url system "cd #{File.join(File.dirname(__FILE__), '..')} && rspec spec/generic_test_spec.rb" end end Exe.start(ARGV)