Sha256: f85ae0b158245790982b455eaec1c50c98d5873db5581ebd92e01664d16f09e0

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

Stored size: 762 Bytes

Contents

require 'rspec'

require 'ore/options'

shared_examples "a gemspec" do
  it "should have a name" do
    subject.name.should == name
  end

  it "should not contain a version by default" do
    subject.version.version.should == Ore::Options::DEFAULT_VERSION
  end

  it "should a dummy summary" do
    subject.summary.should == Ore::Options::DEFAULT_SUMMARY
  end

  it "should a dummy description" do
    subject.description.should == Ore::Options::DEFAULT_DESCRIPTION
  end

  it "should have a license" do
    subject.license.should == Ore::Options::DEFAULT_LICENSE
  end

  it "should have authors" do
    subject.authors.should == Ore::Options::DEFAULT_AUTHORS
  end

  it "should have a dummy homepage" do
    subject.homepage.should_not be_empty
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ore-0.9.2 spec/gemspec_examples.rb
ore-0.9.1 spec/gemspec_examples.rb
ore-0.9.0 spec/gemspec_examples.rb