Sha256: 588a6f5f7749a904e1512d73633b14a7e0358c9993b569a0dad08d9e618db11a

Contents?: true

Size: 596 Bytes

Versions: 11

Compression:

Stored size: 596 Bytes

Contents

class GroupSitesDataset < Dataset::Base
  uses :pages
  
  def load
    create_record Site, :test, :name => 'Test Site', :domain => 'test', :base_domain => 'test.host', :position => 1, :mail_from_name => 'test sender', :mail_from_address => 'sender@spanner.org', :homepage_id => page_id(:home)
    create_record Site, :elsewhere, :name => 'Another Site', :domain => '^elsewhere', :base_domain => 'elsewhere.test.com', :position => 2
    create_record Site, :default, :name => 'Default', :domain => '', :base_domain => 'spanner.org', :position => 3
    Page.current_site = sites(:test)
  end
 
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-reader_group-extension-1.2.4 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.2.3 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.2.2 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.2.1 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.2.0 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.1.2 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.1.1 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.1.0 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.0.1 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-1.0.0 spec/datasets/group_sites_dataset.rb
radiant-reader_group-extension-0.9.0 spec/datasets/group_sites_dataset.rb