spec/knapsack/report_spec.rb in knapsack-0.5.0 vs spec/knapsack/report_spec.rb in knapsack-1.0.0

- old
+ new

@@ -5,30 +5,26 @@ %Q[{"a_spec.rb": #{rand(Math::E..Math::PI)}}] end describe '#config' do context 'when passed options' do - let(:opts) do + let(:args) do { - report_path: 'new_knapsack_report.json', + report_path: 'knapsack_new_report.json', fake: true } end it do - expect(report.config(opts)).to eql({ - report_path: 'new_knapsack_report.json', + expect(report.config(args)).to eql({ + report_path: 'knapsack_new_report.json', fake: true }) end end context "when didn't pass options" do - it do - expect(report.config).to eql({ - report_path: 'knapsack_report.json' - }) - end + it { expect(report.config).to eql({}) } end end describe '#save', :clear_tmp do before do