Sha256: f3ee2a6593230ee6091226e2f6000ca3fc1ad32e7fa9b45e5f98c25924e49b16

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

require 'spec_helper'

describe Project do
  before(:each) do
    @name = 'name'
    switch_to_working_directory do
      @project = Project.new(@name)
    end
  end

  it "has a name" do
    expect(@project.name).to eq(@name)
  end

  it "has a base_directory" do
    path = File.join(working_directory, @name)
    expect(@project.path).to eq(path)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pointrb-0.1.2 spec/project/project_spec.rb
pointrb-0.1.1 spec/project/project_spec.rb
pointrb-0.1.0 spec/project/project_spec.rb