spec/routine_spec.rb in benches-0.1.0 vs spec/routine_spec.rb in benches-0.2.0
- old
+ new
@@ -46,18 +46,18 @@
describe 'call' do
context 'no method arguments' do
let(:bench) { Benches::Routine.new("test_string", 'split', 20) }
it 'performs benchmark' do
- expect(bench.call.first).to be_a Benchmark::Tms
+ expect(bench.call).to be_a Benchmark::Tms
end
end
context 'method has arguments' do
let(:bench) { Benches::Routine.new("test_string", 'insert', 20, 1, 'a') }
it 'performs benchmark' do
- expect(bench.call.first).to be_a Benchmark::Tms
+ expect(bench.call).to be_a Benchmark::Tms
end
end
end
end