Skip to content

Instantly share code, notes, and snippets.

@paul
Created November 26, 2008 02:07
Show Gist options
  • Save paul/29237 to your computer and use it in GitHub Desktop.
Save paul/29237 to your computer and use it in GitHub Desktop.
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