Sha256: 21ba3b8419521757088c23750910f17dd18c2fd2186d5269239e949a29ba0e8e

Contents?: true

Size: 794 Bytes

Versions: 2

Compression:

Stored size: 794 Bytes

Contents

require_relative "../spec_helper"
require "soundcheck/project"

describe Project do
  it "should be initialized" do
    project = Project.new(fixture("ruby-rspec"))
    project.root.should == fixture("ruby-rspec")
  end

  it "should determine the language used" do
    Project.new(fixture("ruby-rspec")).language.should be_a(Languages::Ruby)
    Project.new(fixture("node-expresso")).language.should be_a(Languages::NodeJS)

    expect {
      Project.new(fixture("null-project")).language
    }.to raise_error(Project::UnknownLanguage)
  end

  it "should ask the language to determine the frameworks used" do
    project = Project.new(stub)
    language = stub
    language.should_receive(:frameworks).and_return([])
    project.stub!(:language => language)
    project.frameworks
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soundcheck-0.2.1 spec/soundcheck/project_spec.rb
soundcheck-0.2.0 spec/soundcheck/project_spec.rb