Permalink
Browse files

Sort the available mime types

  • Loading branch information...
1 parent 6a59d84 commit b68e1a3ebc9145bbf3e1c03b48e8359b2efae4cd @tlatsas tlatsas committed May 4, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/helpers/duckrails/mocks_helper.rb
  2. +1 −1 spec/helpers/duckrails/mocks_helper_spec.rb
@@ -1,7 +1,7 @@
module Duckrails
module MocksHelper
def available_mime_types
- Mime::EXTENSION_LOOKUP.map{ |a| a[1].to_s }.uniq
+ Mime::EXTENSION_LOOKUP.map{ |a| a[1].to_s }.uniq.sort
end
def available_script_types
@@ -6,7 +6,7 @@ module Duckrails
subject { helper.send :available_mime_types }
it 'should return all available mime types' do
- expect(subject).to eq Mime::EXTENSION_LOOKUP.map{ |a| a[1].to_s }.uniq
+ expect(subject).to eq Mime::EXTENSION_LOOKUP.map{ |a| a[1].to_s }.uniq.sort
end
it 'should show the mime type' do

0 comments on commit b68e1a3

Please sign in to comment.