Sha256: 7791c7259d75237d6bf44f360897c6189cf8d2e54c3c28657df6ac24da70d751
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../spec_helper") class Require describe Gemspec do it "should generate a valid gemspec instance" do Require.stub!(:root).and_return(SPEC + "/fixture") Require.reset do gem :rspec, '=1.3.0' gemspec do author 'Winton Welsh' dependencies do gem :rspec end email 'mail@wintoni.us' name 'require' homepage "http://github.com/winton/#{name}" summary "summary" version '0.1.0' end end FileUtils.mkdir_p(File.expand_path("#{File.dirname(__FILE__)}/../fixture/ignore_me")) s = Require.gemspec s.authors.should == [ "Winton Welsh" ] s.date.should == Time.utc(Date.today.year, Date.today.mon, Date.today.mday, 8) s.default_executable.should == "bin" s.dependencies.should == [Gem::Dependency.new("rspec", Gem::Requirement.new(["= 1.3.0"]), :runtime)] s.email.should == 'mail@wintoni.us' s.executables.should == ["bin"] s.extra_rdoc_files.should == ["README.markdown"] s.files.should == ["bin", "bin/bin", "lib", "lib/lib.rb", "README.markdown"] s.homepage.should == "http://github.com/winton/require" s.name.should == "require" s.require_paths.should == ["lib"] s.summary.should == 'summary' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
require-0.2.2 | spec/require/gemspec_spec.rb |
require-0.2.1 | spec/require/gemspec_spec.rb |
require-0.2.0 | spec/require/gemspec_spec.rb |