-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio file fields #138
Audio file fields #138
Conversation
@@ -35,6 +36,17 @@ class << @controller; attr_accessor :prx_auth_token; end | |||
assert_response :success | |||
end | |||
|
|||
it 'can create an audio file for an audio version' do | |||
af_hash = { | |||
upload: "http://thisisatest.com/guid1/test.mp3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
property :filename | ||
property :label | ||
property :status, writeable: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we'd never want to set this through the CMS, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right.
Updates for publish.prx.org file uploading:
position
status
account_id
through theaudio_version.story.account_id
, if possible. So when POSTing new files through the/audio_versions/:id/audio_files
, they get that implicit account set.