Created
November 26, 2008 02:07
-
-
Save paul/29237 to your computer and use it in GitHub Desktop.
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
describe 'POST SSKJ1 to /privileges', :type => 'service' do | |
request { |attributes| | |
post_sskj1(privileges_url, privilege_sskj1_json(attributes)) | |
} | |
should_be_created | |
should_require_pairs :name | |
should_ignore_pairs :href, :id, :_type | |
should_validate_pairs :name, | |
:valid => ['test', 'test_priv'], | |
:invalid => ['Test', 'test-priv', 'test1', "test" * 30, 'create_client'] | |
should_require_privilege :create_privilege | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment