Sha256: afb3cb6d843b8f0db2adcfc14259ff5a5df0c526c18bd87629723d5ddc0f5a0d
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 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 :hello } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
miu-0.2.3 | spec/miu/command_spec.rb |
miu-0.2.2 | spec/miu/command_spec.rb |