Sha256: 48de8ccb9270ce132e88ab03a0bac48dbdaebde0d3ac7b7a896998e318fc8fe2
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe Bueller::Commands::WriteGemspec do let(:bueller) { Bueller.new FileSystem.fixture_path('existing-project') } let(:command) { Bueller::Commands::WriteGemspec.new(bueller) } let(:now) { Time.now } context "after run" do before :each do bueller.gemspec_helper.stub!(:write) Time.stub!(:now).and_return Time.parse('2011-01-13 04:22:33') end it "should update gemspec version" do bueller.version_helper.bump_major command.run bueller.gemspec_helper.version.to_s.should == '2.0.0' end it "should update gemspec date to the beginning of today" do command.run bueller.gemspec_helper.spec.date.to_s.should =~ /2011-01-13/ end it "should write gemspec" do bueller.gemspec_helper.should_receive :write command.run end it "should output that the gemspec was written" do bueller.output = StringIO.new command.run bueller.output.string.should =~ /Generated: .*existing-project\.gemspec/ end end end
Version data entries
4 entries across 4 versions & 1 rubygems