To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!More about adding a collaborator
Passing a list of URLs to Compatriot.run will visit each of them in each browser and take a screenshot.
- List of URLs
a Sinatra app named "simple_app.rb" with:
get '/' do 'Hello' end get '/goodbye' do 'Goodbye' end
a file named "compatriot_urls.rb" with:
require 'compatriot' require_relative 'simple_app' Compatriot.app = SimpleApp Compatriot.run(%w[ / /goodbye ])
- the directory "tmp/results" does not exist
- "tmp/results" should have 1 subdirectory
- there should be results for 2 screenshots
Last published over 4 years ago by clnclarinet.