canvas-lms/spec
dave 7e6519d586 add api endpoint to post global annoucement
***test plan
  1.  Make a POST like /accounts/1/account_notifications
  2.  Required Parameters:
      1) account_notification[subject]
      2) account_notification[start_at]
      3) account_notification[end_at]
      4) account_notification[message]
  3.  Optional Parameters:
      1) account_notification[icon]
        'warning' | 'information' | 'question' | 'error' | 'calendar'
         note: defaults to warning
      2) account_notification_roles[]
        'StudentEnrollment', 'TeacherEnrollment' etc...
        this defaults to all roles
  4.  Only account admins should be able to make the api call
  5.  Should not be able to create an account notification with an
  end_at < start_at

closes:  PS-1730
closes: PS-1872

Change-Id: Ide86722598ae4a7ab565422f2996015b48cf8910
Reviewed-on: https://gerrit.instructure.com/37477
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Brandon Broschinsky <brandonbr@instructure.com>
2014-07-25 22:16:18 +00:00
..
apis add api endpoint to post global annoucement 2014-07-25 22:16:18 +00:00
coffeescripts save assignments on Post Grades 2014-07-24 21:09:49 +00:00
controllers remove canvas frame from borderless lti launches 2014-07-21 20:42:47 +00:00
factories Adds peer review notification for assigning peer reviewers 2014-07-25 19:56:57 +00:00
fixtures ignore zip entries containing '..' elements or symlinks 2014-07-24 15:41:21 +00:00
gem_integration use syck for yaml parsing in canvas_stringex gem tests 2014-02-08 13:54:29 +00:00
helpers spec: once-ler spec/helper 2014-07-14 18:34:57 +00:00
initializers fix migrations for mysql 2014-07-17 20:38:10 +00:00
integration ignore extra attributes from cas response 2014-07-10 16:32:04 +00:00
javascripts a way for accounts to opt-in to new styles and users to high-contrast 2014-04-17 19:47:05 +00:00
lib ignore zip entries containing '..' elements or symlinks 2014-07-24 15:41:21 +00:00
messages Adds peer review notification for assigning peer reviewers 2014-07-25 19:56:57 +00:00
migrations discussions: prevent creation of new group graded discussions 2014-07-14 19:30:13 +00:00
models don't set graded_at in the future for quiz submissions 2014-07-25 20:12:09 +00:00
observers cross shard dashboards 2012-11-29 17:36:24 -07:00
presenters DA - grade calculation works on backend 2014-07-17 21:27:59 +00:00
selenium add api endpoint to post global annoucement 2014-07-25 22:16:18 +00:00
serializers DA - quiz edit page 2014-07-23 14:41:24 +00:00
support spec: re-fix base_transactions for onceler 2014-07-23 16:20:15 +00:00
views add api endpoint to post global annoucement 2014-07-25 22:16:18 +00:00
ams_spec_helper.rb use require_dependency for reloadable constants 2014-07-16 16:43:46 +00:00
broadcast_integration.rb Initial commit. 2011-01-31 18:57:29 -07:00
cassandra_spec_helper.rb extract canvas_cassandra gem 2014-01-22 22:49:35 +00:00
import_helper.rb assessment question bank migration content selection 2014-06-05 19:56:03 +00:00
mocha_extensions.rb spec: serialize objects for MemoryStore and NilStore 2013-10-14 16:25:03 +00:00
mocha_rspec_adapter.rb fix spec deprecation warnings for rails 3 2013-12-30 20:54:07 +00:00
nested_instafail_formatter.rb spec: tweak nested_instafail_formatter for rails3 2014-01-17 19:38:10 +00:00
rcov.opts Initial commit. 2011-01-31 18:57:29 -07:00
sharding_spec_helper.rb spec: don't override base_transactions in onceler noop 2014-07-22 19:19:17 +00:00
spec.opts fixes for ruby 1.9.3 2012-05-12 14:34:23 -06:00
spec_helper.rb add api endpoint to post global annoucement 2014-07-25 22:16:18 +00:00