spec/support/02_pkg_spec.rb in devinstall-1.2.2 vs spec/support/02_pkg_spec.rb in devinstall-1.2.3

- old
+ new

@@ -6,39 +6,40 @@ Devinstall::Settings.instance.load! './spec/assets/example_01.yml' ## use defaults for type and env end it 'should include the correct file' do pk=Devinstall::Package.new(@package, @type, @env) - expect(pk.singleton_class.include?(Pkg::Deb)).to be_true + expect(pk.singleton_class.include?(Pkg::Deb)).to be true end describe 'pkg_deb' do it 'should pretend to build a package' do $dry=true pk =Devinstall::Package.new(@package, @type, @env) out = capture_output { pk.build(@package, @type, @env) } - expect(out).to match /^Building/ + expect(out).to match(/^Building/) end it 'should pretend to upload a package' do $dry=true pk =Devinstall::Package.new(@package, @type, @env) out = capture_output { pk.upload(@package, @type, @env) } - expect(out).to match /^Upload/ + expect(out).to match(/^Upload/) end it 'should pretend to test a package' do $dry=true pk =Devinstall::Package.new(@package, @type, @env) out = capture_output { pk.run_tests(@package, @type, @env) } - expect(out).to match /^Running/ + expect(out).to match(/^Running/) end it 'should pretend to install a package' do $dry=true pk =Devinstall::Package.new(@package, @type, @env) out = capture_output { pk.install(@package, @type, @env) } - expect(out).to match /^Installing/ + expect(out).to match(/^Installing/) end - end + end +