Skip to content

Commit c0d9f4e

Browse files
committed
Add custom setup for running live test suite.
1 parent 1b22363 commit c0d9f4e

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ pkg
88
log
99
*.sqlite3
1010
features/cassettes
11+
features/settings.yml

features/settings.yml.sample

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
oauth_token: token
3+
basic_auth: login:password
4+
user: username
5+
repo: repository name
6+
org: organisation this user belongs to

features/support/settings.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'yaml'
2+
3+
def settings_file
4+
Pathname.new(File.expand_path("../../settings.yml", __FILE__))
5+
end
6+
7+
SETTINGS = (File.exists?(settings_file) && yaml= YAML.load_file(settings_file)) ? yaml : {}

0 commit comments

Comments
 (0)