Sha256: fea05e3c30304afce9bd3fa4d1ee14265b9019a5bd4e00a99bf89d460bb5ea61

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'
require 'anvil/versioner'
require 'tasks/gem/release_task'

describe Gem::ReleaseTask do
  subject { Gem::ReleaseTask.new :major }

  let(:version) { Anvil::Versioner.new('2.0.0') }
  let(:gem_file) { 'new-gem-v2.0.0.gem' }

  describe '#task' do
    before do
      allow(subject).to receive(:bump).and_return(version)
      allow(subject).to receive(:build).and_return(gem_file)
    end

    it 'pushes the gem to rubygems' do
      expect(subject).to receive(:push)
    end

    after { subject.task }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
anvil-core-0.6.0 spec/lib/tasks/gem/release_task_spec.rb
anvil-core-0.5.0 spec/lib/tasks/gem/release_task_spec.rb