Sha256: bdadd2bb7e3b4c820c451c18522f83b2a48b6fb5a071195584acb56d942d373f

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'

module Gram
  describe Gem do
   
    describe ".create" do
      it 'calls a gem generator' do
        generator = mock(Gem::Generator)
        Gem::Generator.should_receive(:new).and_return generator
        generator.should_receive(:generate).with('my_gem', ['--rails'])

        subject.create 'my_gem', '--rails'
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gram-0.3.0 spec/gram/gem_spec.rb
gram-0.2.0 spec/gram/gem_spec.rb
gram-0.1.0 spec/gram/gem_spec.rb