Permalink
Browse files
Sort the available mime types
- Loading branch information...
|
|
@@ -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