Sha256: 78f957ef6ae1ca863ca8f33779eb7006e9f49a54fb793b67e7879b771aa3dfc9

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fat_free_crm-0.20.1 spec/models/list_spec.rb
fat_free_crm-0.20.0 spec/models/list_spec.rb
fat_free_crm-0.19.2 spec/models/list_spec.rb
fat_free_crm-0.19.0 spec/models/list_spec.rb
fat_free_crm-0.18.2 spec/models/list_spec.rb
fat_free_crm-0.18.1 spec/models/list_spec.rb
fat_free_crm-0.18.0 spec/models/list_spec.rb