Sha256: 96240db4765640cf4465333f1c21f235d2525f1a479f83c1a93d31f9be2e0f66

Contents?: true

Size: 802 Bytes

Versions: 2

Compression:

Stored size: 802 Bytes

Contents

require 'spec_helper'

describe Miu::Command do
  describe 'new' do
    before do
      node = double('node')
      node.stub_chain(:spec, :full_gem_path).and_return('path/to/node')
      Miu.stub(:root).and_return ('path/to/root')
      @command = Miu::Command.new 'test_node', node do
        def self.hello
        end
      end
    end
    subject { @command }

    it { should be_instance_of Class }
    its(:ancestors) { should include Thor }
    its(:source_root) { should eq 'path/to/node' }
    its(:destination_root) { should eq 'path/to/root' }
    its(:namespace) { should eq 'test_node' }
    it { should respond_to :add_miu_pub_options }
    it { should respond_to :add_miu_sub_options }
    it { should respond_to :add_miu_pub_sub_options }
    it { should respond_to :hello }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
miu-0.2.1 spec/miu/command_spec.rb
miu-0.2.0 spec/miu/command_spec.rb