spec/lib/interfaces/live_parameters_spec.rb in picky-2.7.0 vs spec/lib/interfaces/live_parameters_spec.rb in picky-3.0.0.pre1

- old
+ new

@@ -1,22 +1,22 @@ # encoding: utf-8 # require 'spec_helper' -describe LiveParameters do +describe Picky::Interfaces::LiveParameters do before(:each) do @parent = stub :parent @child = stub :child IO.stub! :pipe => [@child, @parent] - @parameters = LiveParameters.new + @parameters = described_class.new @parameters.stub! :exclaim end - describe Interfaces::LiveParameters::CouldNotUpdateConfigurationError do + describe Picky::Interfaces::LiveParameters::CouldNotUpdateConfigurationError do before(:each) do - @error = Interfaces::LiveParameters::CouldNotUpdateConfigurationError.new :some_key, 'some message' + @error = Picky::Interfaces::LiveParameters::CouldNotUpdateConfigurationError.new :some_key, 'some message' end end describe 'querying_removes_characters' do it 'works' do @@ -51,10 +51,10 @@ @parameters.parameters :a => :b end end context 'updating failed' do before(:each) do - @parameters.should_receive(:try_updating_configuration_with).and_raise Interfaces::LiveParameters::CouldNotUpdateConfigurationError.new(:a, 'hello') + @parameters.should_receive(:try_updating_configuration_with).and_raise Picky::Interfaces::LiveParameters::CouldNotUpdateConfigurationError.new(:a, 'hello') end it 'kills itself and returns' do @parameters.should_receive(:close_child).once.ordered @parameters.should_receive(:harakiri).once.ordered \ No newline at end of file