Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Fix syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Dunn committed Sep 20, 2016
1 parent 36c5b90 commit f38332c
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ A run will be created for you when creating a new instance of a `SpectreClient::

Create a client object:

client = SpectreClient::Client.new('Project Name', 'Suite Name', "http://spectre.local")
```ruby
client = SpectreClient::Client.new('Project Name', 'Suite Name', "http://spectre.local")
```

Submit a test:

client.submit_test(options_hash)
```ruby
client.submit_test(options_hash)
```

The method accepts a hash with the following keys:

Expand All @@ -44,13 +48,15 @@ The method accepts a hash with the following keys:

Example:

client.submit_test({
name: 'Homepage',
browser: 'Firefox',
size: '1200',
screenshot: File.new('homepage.png', 'rb'),
source_url: 'http://mysite.dev/'
})
```ruby
client.submit_test({
name: 'Homepage',
browser: 'Firefox',
size: '1200',
screenshot: File.new('homepage.png', 'rb'),
source_url: 'http://mysite.dev/'
})
```

## Development

Expand Down

0 comments on commit f38332c

Please sign in to comment.