# 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