-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add group/kata create2(manifest) methods as a step in switching back …
…to create methods that accept a manifest
- Loading branch information
Showing
11 changed files
with
121 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require_relative 'test_base' | ||
|
||
class GroupCreate2Test < TestBase | ||
|
||
def self.id58_prefix | ||
'e08' | ||
end | ||
|
||
# - - - - - - - - - - - - - - - - - - - - - - - | ||
|
||
versions3_test 'h35', %w( | ||
|POST /group_create(manifest) | ||
|has status 200 | ||
|returns the id: of a new group | ||
|that exists in saver | ||
) do | ||
assert_json_post_200( | ||
path = 'group_create2', | ||
{ manifest:custom_manifest2 }.to_json | ||
) do |response| | ||
assert_equal [path], response.keys, :keys | ||
id = response[path] | ||
assert group_exists?(id), :exists | ||
assert_equal version, group_manifest(id)['version'], :version | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require_relative 'test_base' | ||
|
||
class KataCreate2Test < TestBase | ||
|
||
def self.id58_prefix | ||
'e09' | ||
end | ||
|
||
# - - - - - - - - - - - - - - - - - - - - - - - | ||
|
||
versions3_test 'h35', %w( | ||
|POST /kata_create(manifest) | ||
|has status 200 | ||
|returns the id: of a new kata | ||
|that exists in saver | ||
) do | ||
assert_json_post_200( | ||
path = 'kata_create2', | ||
{ manifest:custom_manifest2 }.to_json | ||
) do |response| | ||
assert_equal [path], response.keys, :keys | ||
id = response[path] | ||
assert kata_exists?(id), :exists | ||
assert_equal version, kata_manifest(id)['version'], :version | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
warnings:0, | ||
skips:0, | ||
|
||
duration:10, | ||
duration:30, | ||
|
||
code: { | ||
lines: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters