Skip to content
Extraits de code Groupes Projets
mobile_helper_spec.rb 530 octets
Newer Older
  • Learn to ignore specific revisions
  • #   Copyright (c) 2010, Diaspora Inc.  This file is
    #   licensed under the Affero General Public License version 3 or later.  See
    #   the COPYRIGHT file.
    
    require 'spec_helper'
    
    describe MobileHelper do
      
      describe "#aspect_select_options" do
        it "adds an all option to the list of aspects" do
          # options_from_collection_for_select(@aspects, "id", "name", @aspect.id)
          
          n = Factory(:aspect)
          
          options = aspect_select_options([n], n).split('\n')
          options.first.should =~ /All/
        end
      end
    end