Sha256: 14be6b18204a874687c3760a6a8b8be17639d25c7896bafc8997e28963c0b475

Contents?: true

Size: 883 Bytes

Versions: 5

Compression:

Stored size: 883 Bytes

Contents

require 'spec_helper'
require 'ore/project'

shared_examples_for 'an Ore Project' do
  it "should have project files" do
    @project.project_files.should_not be_empty
  end

  it "should have a name" do
    @project.name.should_not be_nil
  end

  it "should have a namespace" do
    @project.namespace.should_not be_nil
  end

  it "should have a version" do
    @project.version.major.should == 1
    @project.version.minor.should == 2
    @project.version.patch.should == 3
  end

  it "should have a summary" do
    @project.summary.should_not be_nil
  end

  it "should have a description" do
    @project.description.should_not be_nil
  end

  it "should have authors" do
    @project.authors.should_not be_empty
  end

  it "should be able to create a Gem::Specification" do
    Dir.chdir(@project.root) do
      @project.to_gemspec.validate.should == true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ore-core-0.1.4 spec/projects/project_examples.rb
ore-core-0.1.3 spec/projects/project_examples.rb
ore-core-0.1.2 spec/projects/project_examples.rb
ore-core-0.1.1 spec/projects/project_examples.rb
ore-core-0.1.0 spec/projects/project_examples.rb