Sha256: cff7ad263e77defe446beb0005cf39ebea77b9708e78853ee3f8f77bb76e1bdb

Contents?: true

Size: 518 Bytes

Versions: 10

Compression:

Stored size: 518 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "Reflection" do
  
  describe '#boot' do
    before(:each) do
      Reflection::CLI.stub!(:run!)
    end
    
    it 'should init a Home instance which represents ~/.reflection' do
      Reflection.boot!([])
      Reflection.home.should be_kind_of(Reflection::Support::Home)
    end
    
    it 'should run the CLI processor' do
      Reflection::CLI.should_receive(:run!).with(['args'])
      Reflection.boot!(['args'])
    end
  end
  
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
basiszwo-reflection-0.5.1 spec/reflection_spec.rb
reflection-0.5.0 spec/reflection_spec.rb
reflection-0.4.6 spec/reflection_spec.rb
reflection-0.4.5 spec/reflection_spec.rb
reflection-0.4.4 spec/reflection_spec.rb
reflection-0.4.3 spec/reflection_spec.rb
reflection-0.4.1 spec/reflection_spec.rb
reflection-0.4.0 spec/reflection_spec.rb
reflection-0.3.1 spec/reflection_spec.rb
reflection-0.0.2 spec/reflection_spec.rb