-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on controller specs, mianly create and update. Not done yet...
modified: Gemfile modified: Gemfile.lock modified: app/assets/templates/home.html modified: app/controllers/audio_events_controller.rb modified: app/controllers/home_controller.rb modified: app/models/audio_event.rb modified: app/models/progress.rb modified: app/serializers/analysis_item_serializer.rb modified: app/serializers/audio_event_serializer.rb modified: app/serializers/audio_recording_serializer.rb new file: app/views/audio_events/download.csv.erb modified: app/views/layouts/application.html.erb modified: config/routes.rb modified: spec/controllers/analysis_items_controller_spec.rb modified: spec/controllers/analysis_jobs_controller_spec.rb modified: spec/controllers/analysis_scripts_controller_spec.rb modified: spec/controllers/audio_events_controller_spec.rb modified: spec/controllers/audio_recordings_controller_spec.rb modified: spec/controllers/bookmarks_controller_spec.rb modified: spec/controllers/permissions_controller_spec.rb modified: spec/controllers/photos_controller_spec.rb modified: spec/controllers/progresses_controller_spec.rb modified: spec/controllers/projects_controller_spec.rb modified: spec/controllers/saved_searches_controller_spec.rb modified: spec/controllers/sites_controller_spec.rb modified: spec/controllers/tags_controller_spec.rb modified: spec/controllers/users_controller_spec.rb modified: spec/factories/bookmark_factory.rb new file: spec/factories/common_factory.rb modified: spec/models/module_audio_spec.rb modified: spec/models/module_cache_spec.rb modified: spec/models/permission_spec.rb modified: spec/models/tag_spec.rb new file: spec/support/api_examples_create.rb new file: spec/support/api_examples_delete.rb renamed: spec/support/shared_api_examples.rb -> spec/support/api_examples_idempotent.rb new file: spec/support/api_examples_new.rb new file: spec/support/api_examples_update.rb modified: spec/support/helpers.rb modified: spec/support/shared_api_examples.rb modified: vendor/bin/install_console_audio_tools.sh
- Loading branch information
Mark Cottman-Fields
committed
Jan 23, 2013
1 parent
44f6779
commit a2dcc53
Showing
11 changed files
with
36 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,8 @@ def index | |
head :not_acceptable | ||
end | ||
end | ||
|
||
def whoami | ||
head 418, :status => "I'm a teapot" | ||
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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
require 'common_attributes' | ||
|
||
class AudioRecordingInSiteSerializer < CommonAttributesSerializer | ||
attributes :id, :name | ||
end | ||
|
||
class AudioRecordingSerializer < CommonAttributesSerializer | ||
attributes :bit_rate_bps, :channels, :data_length_bytes, | ||
attributes :id, :bit_rate_bps, :channels, :data_length_bytes, | ||
:duration_seconds, :file_hash, :media_type, :notes, | ||
:recorded_date, :sample_rate_hertz, :status, :uploader_id, | ||
:site_id, :uuid, :id | ||
:uuid | ||
|
||
has_many :sites, :serializer => AudioRecordingInSiteSerializer | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Annotation Id, Start Date, Start Time, End Date, End Time, Max Frequency (hz), Min Frequency (hz), Projects, Site, Audio Recording Id, Tagged by, Player link, Tag 1 Id, Tag 1 Text, Tag 1 Type, Tag 1 Is Taxanomic, Tag 2 Id, Tag 2 Text, Tag 2 Type, Tag 2 Is Taxanomic, Tag 3 Id, Tag 3 Text, Tag 3 Type, Tag 3 Is Taxanomic | ||
<%= | ||
CSV.generate do |csv| | ||
@formatted_annotations.each do |annotation| | ||
csv << annotation | ||
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