spec/configurators/bundler_configurator_spec.rb in rconf-0.7.8 vs spec/configurators/bundler_configurator_spec.rb in rconf-0.7.9
- old
+ new
@@ -16,15 +16,10 @@
def success_result(output=nil)
flexmock('res', :success? => true, :output => output)
end
before(:each) do
- lang = RightConf::Language.parse('bundler { version "0" }')
- @configurator = lang.configurators.first
- [:report_check, :report_result, :report_success].each do |meth|
- flexmock(@configurator).should_receive(meth)
- end
- flexmock(@configurator).should_receive(:report_fatal).and_return { |*args| raise args.join(' ') }
+ @configurator = create_configurator('bundler { version "0" }')
RightConf::Command.instance.instance_variable_set(:@rvm_prefix, 'r@g')
end
after(:each) do
RightConf::Command.instance.instance_variable_set(:@rvm_prefix, nil)