spec/lucid/runtime_spec.rb in lucid-0.3.3 vs spec/lucid/runtime_spec.rb in lucid-0.4.0
- old
+ new
@@ -1,29 +1,29 @@
require 'spec_helper'
module Lucid
- describe Runtime do
+ describe ContextLoader do
let(:options) { {} }
- subject { Runtime.new(options) }
+ subject { ContextLoader.new(options) }
describe '#specs_paths' do
let(:options) { {:paths => ['specs/area1/test.spec', 'specs/area1/area2/test.spec', 'others_specs'] } }
it 'returns the value from the configuration.spec_source' do
subject.specs_paths.should == options[:spec_source]
end
end
describe '#configure' do
- let(:orchestrator) { double(Runtime::Orchestrator).as_null_object }
- let(:results) { double(Runtime::Results).as_null_object }
+ let(:orchestrator) { double(ContextLoader::Orchestrator).as_null_object }
+ let(:results) { double(ContextLoader::Results).as_null_object }
let(:new_config) { double('New Configuration') }
before(:each) do
- Runtime::Orchestrator.stub(:new => orchestrator)
- Runtime::Results.stub(:new => results)
+ ContextLoader::Orchestrator.stub(:new => orchestrator)
+ ContextLoader::Results.stub(:new => results)
end
it 'tells the orchestrator and results about the new configuration' do
orchestrator.should_receive(:configure).with(new_config)
results.should_receive(:configure).with(new_config)
@@ -33,6 +33,6 @@
it '#doc_string' do
subject.doc_string('Testing').should == 'Testing'
end
end
end
-end
\ No newline at end of file
+end