Sha256: 7d08436360bce34e6e67e128512b7d7c91e025d091489f098919ab1254562970
Contents?: true
Size: 2 KB
Versions: 16
Compression:
Stored size: 2 KB
Contents
require 'rails_helper' include DmCore::AccountHelper describe DmCore::AccountHelper do setup_account #------------------------------------------------------------------------------ it "returns the current account" do expect(current_account).to eq Account.current end #------------------------------------------------------------------------------ it "returns the account prefix" do expect(account_prefix).to eq 'test' end # Returns the path (from the root of the site) to the site general asset files # Pass in false not to include leading slash #------------------------------------------------------------------------------ it "returns path to the site's general assets" do expect(account_site_assets).to eq '/site_assets/test/site' expect(account_site_assets(false)).to eq 'site_assets/test/site' end #------------------------------------------------------------------------------ it "returns path to the site's protected assets" do expect(account_protected_assets).to eq '/protected_assets/test' expect(account_protected_assets(false)).to eq 'protected_assets/test' end #------------------------------------------------------------------------------ it "returns the path of the site's media folder" do expect(account_site_assets_media).to eq '/site_assets/test/site/media' expect(account_site_assets_media(false)).to eq 'site_assets/test/site/media' end #------------------------------------------------------------------------------ it "returns url to the site's general assets" do expect(account_site_assets_url).to eq 'http://test.example.com/site_assets/test/site' end # Returns the path (from the root of the site) to the site general asset files # Pass in false not to include leading slash #------------------------------------------------------------------------------ it "returns url to the site's media assets" do expect(account_site_assets_media_url).to eq 'http://test.example.com/site_assets/test/site/media' end end
Version data entries
16 entries across 16 versions & 1 rubygems