| @@ 9-18 (lines=10) @@ | ||
| 6 | WatchDogServer |
|
| 7 | end |
|
| 8 | ||
| 9 | def test_user |
|
| 10 | user = Hash.new |
|
| 11 | user['email'] = '[email protected]' |
|
| 12 | user['name'] = 'Foo Bar' |
|
| 13 | user['org'] = 'Baz B.V.' |
|
| 14 | user['org_website'] = 'http://baz.nl' |
|
| 15 | user['prize'] = false |
|
| 16 | user['programmingExperience'] = '1-2 years' |
|
| 17 | user |
|
| 18 | end |
|
| 19 | ||
| 20 | def empty_user |
|
| 21 | user = Hash.new |
|
| @@ 7-15 (lines=9) @@ | ||
| 4 | require 'rest_client' |
|
| 5 | require 'json' |
|
| 6 | ||
| 7 | def test_user |
|
| 8 | user = Hash.new |
|
| 9 | user['email'] = '[email protected]' |
|
| 10 | user['name'] = 'Foo Bar' |
|
| 11 | user['org'] = 'Baz B.V.' |
|
| 12 | user['org_website'] = 'http://baz.nl' |
|
| 13 | user['prize'] = false |
|
| 14 | user |
|
| 15 | end |
|
| 16 | ||
| 17 | def test_project(user_id) |
|
| 18 | project = Hash.new |
|