Sha256: 06726c3a2c9961f4b7235eafee1884a3eab005fa29d122e65aa7a2b3979b178d

Contents?: true

Size: 625 Bytes

Versions: 16

Compression:

Stored size: 625 Bytes

Contents

require 'rails_helper'

describe Account do
  setup_account
  
  it "write tests"
  
  it "has default url values" do
    expect(Account.current.url_protocol).to eq 'http://'
    expect(Account.current.url_host).to eq 'test.example.com'
    expect(Account.current.url_base).to eq 'http://test.example.com'
  end
  
  it "sets the set_url_parts" do
    Account.current.set_url_parts('https://', 'test.sample.com:3000')
    expect(Account.current.url_protocol).to eq 'https://'
    expect(Account.current.url_host).to eq 'test.sample.com:3000'
    expect(Account.current.url_base).to eq 'https://test.sample.com:3000'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_core-4.2.3.10 spec/models/account_spec.rb
dm_core-4.2.3.9 spec/models/account_spec.rb
dm_core-4.2.3.8 spec/models/account_spec.rb
dm_core-4.2.3.7 spec/models/account_spec.rb
dm_core-4.2.3.6 spec/models/account_spec.rb
dm_core-4.2.3.5 spec/models/account_spec.rb
dm_core-4.2.3.4 spec/models/account_spec.rb
dm_core-4.2.3.3 spec/models/account_spec.rb
dm_core-4.2.3.2 spec/models/account_spec.rb
dm_core-4.2.3.1 spec/models/account_spec.rb
dm_core-4.2.3 spec/models/account_spec.rb
dm_core-4.2.2.3 spec/models/account_spec.rb
dm_core-4.2.2.2 spec/models/account_spec.rb
dm_core-4.2.2.1 spec/models/account_spec.rb
dm_core-4.2.2 spec/models/account_spec.rb
dm_core-4.2.1.5 spec/models/account_spec.rb