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

Version Path
fat_free_crm-0.13.6 spec/models/list_spec.rb
fat_free_crm-0.13.5 spec/models/list_spec.rb
fat_free_crm-0.13.4 spec/models/list_spec.rb
fat_free_crm-0.13.3 spec/models/list_spec.rb
fat_free_crm-0.13.2 spec/models/list_spec.rb
fat_free_crm-0.12.3 spec/models/list_spec.rb
fat_free_crm-0.12.2 spec/models/list_spec.rb
fat_free_crm-0.13.1 spec/models/list_spec.rb
fat_free_crm-0.12.1 spec/models/list_spec.rb
fat_free_crm-0.13.0 spec/models/list_spec.rb
fat_free_crm-0.12.0 spec/models/list_spec.rb