Sha256: ef98e1368ba713e32718f1dab05a460279db27248967004bfd324e23f75a4aaa
Contents?: true
Size: 655 Bytes
Versions: 11
Compression:
Stored size: 655 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ require 'spec_helper' describe List do it "should parse the controller from the url" do ["/controller/action", "controller/action?utf8=%E2%9C%93"].each do |url| list = FactoryGirl.build(:list, :url => url) list.controller.should == "controller" end list = FactoryGirl.build(:list, :url => nil) list.controller.should == nil end end
Version data entries
11 entries across 11 versions & 1 rubygems