Permalink
Browse files

Merge pull request #15 from tlatsas/master

Sort the available mime types
  • Loading branch information...
2 parents 6a59d84 + b68e1a3 commit 355f0160288bd631ca5f8e08631447adeb228b8b @iridakos 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 355f016

Please sign in to comment.