Sha256: d5ee6d6a077b747f91107079d9a3aaf9283bada393863a39a4b62bf58991ef01

Contents?: true

Size: 820 Bytes

Versions: 5

Compression:

Stored size: 820 Bytes

Contents

require 'spec_helper'

describe Confluence do

  describe Confluence::Application do
    
    context "class" do
      let(:api) { Confluence::Application }
      describe "#source_root" do
        it "should should point to an existing folder" do
          api.source_root.should =~ /confluence\/lib\/confluence\/templates$/
          File.exists?(api.source_root).should be_true
          File.directory?(api.source_root).should be_true
        end
      end
    end

    context "instance" do
      let(:app) { Confluence::Application.start ["new", "assfag"] }

      describe "#new" do
        it "should create the application that I demand it to" do
          app
          fail "Until this becomes an automated process, YOU need to go and delete the test folder yourself"
        end
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
confluence-0.2.0 spec/confluence_spec.rb
confluence-0.1.1 spec/confluence_spec.rb
confluence-0.1.0 spec/confluence_spec.rb
confluence-0.0.1 spec/confluence_spec.rb
confluence-0.0.0 spec/confluence_spec.rb