Sha256: 71300d90f1fa74f07b6abcee6a9b999526f484464e9068dbd501364d0a23324d

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

require 'spec_helper'

describe Rubymotionr::Repo do
  describe "point it at a rubymotion project with no dependencies and one project at the root" do
    let(:repo) {
      Rubymotionr::Repo.new(File.join(File.dirname(__FILE__), "rubymotion-example"))
    }
    it 'should parse one project' do
      repo.projects.length.should == 1
    end
    it 'should find the path to be in the spec folder' do
      repo.projects.first.path.should == File.join(File.dirname(__FILE__), "rubymotion-example/")
    end
  end

  describe "point it at a rubymotion project with no dependencies and many projects at the root" do
    let(:repo) {
      Rubymotionr::Repo.new(File.join(File.dirname(__FILE__), "multiple-rubymotion-apps/"))
    }
    it 'should parse one project' do
      repo.projects.length.should == 15
    end
    it 'should have found 15 paths all within multiple-rubymotion-apps directory' do
      Dir.glob(File.join(File.dirname(__FILE__), "multiple-rubymotion-apps/*/")).sort.should == repo.projects.collect { |proj| proj.path }.sort
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubymotionr-0.0.1 spec/repo_spec.rb