Sha256: aad755f860c5a2273bf00e0b405ed5fe13677907e737fcff0c2075f6b1baa872

Contents?: true

Size: 659 Bytes

Versions: 15

Compression:

Stored size: 659 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)
      expect(list.controller).to eq("controller")
    end
    list = FactoryGirl.build(:list, url: nil)
    expect(list.controller).to eq(nil)
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 spec/models/list_spec.rb
fat_free_crm-0.15.2 spec/models/list_spec.rb
fat_free_crm-0.16.4 spec/models/list_spec.rb
fat_free_crm-0.14.1 spec/models/list_spec.rb
fat_free_crm-0.15.1 spec/models/list_spec.rb
fat_free_crm-0.16.3 spec/models/list_spec.rb
fat_free_crm-0.16.2 spec/models/list_spec.rb
fat_free_crm-0.16.1 spec/models/list_spec.rb
fat_free_crm-0.16.0 spec/models/list_spec.rb
fat_free_crm-0.15.0 spec/models/list_spec.rb
fat_free_crm-0.15.0.beta.2 spec/models/list_spec.rb
fat_free_crm-0.15.0.beta spec/models/list_spec.rb
fat_free_crm-0.14.0 spec/models/list_spec.rb
reduced_fat_crm-0.15.0.beta spec/models/list_spec.rb
reduced_fat_crm-0.14.0 spec/models/list_spec.rb