Sha256: 9d812df3418043aad2f419425327f9350f7c65a12dfc14db0e723ae8373d1c9a

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

require 'spec_helper'

describe Hostname do
  it 'initializes' do
    Hostname.new.should_not be_nil
  end
  describe "hostname" do
    it {should allow_value('localhost').for(:hostname)}
  end
  describe "find host example.com" do
    it 'find saved hostname' do
      Factory.build(:hostname, :hostname=>'example.com').save

      Hostname.find_by_hostname('example.com').should_not be_nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-multisite-0.0.8 spec/models/hostname_spec.rb
refinerycms-multisite-0.0.6 spec/models/hostname_spec.rb
refinerycms-multisite-0.0.5 spec/models/hostname_spec.rb
refinerycms-multisite-0.0.4 spec/models/hostname_spec.rb
refinerycms-multisite-0.0.3 spec/models/hostname_spec.rb
refinerycms-multisite-0.0.2 spec/models/hostname_spec.rb
refinerycms-multisite-0.0.1 spec/models/hostname_spec.rb