Sha256: 93eb83045226e3c5519914b5147e43b5080a0349ba65f942be1a852aac4bca9e

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class SiteTest < Test::Unit::TestCase
  context "A new site" do
    setup do
      @site = Utter::Site.new :name => 'tooky.github.com', 
                              :source => File.join(tmp_dir, 'tooky.github,com'), 
                              :destination => File.join(tmp_dir, 'tooky.github,com', 'public'), 
                              :repo => 'git@github.com:tooky/tooky.github.com.git'
    end
    
    should "not have a key" do
      assert ! @site[:key]
    end
    
    should "generate a key after create" do
      @site.save
      assert @site[:key]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tooky-utter-0.0.1 test/site_test.rb