spec/array_spec.rb in briard-2.4.2 vs spec/array_spec.rb in briard-2.6.0
- old
+ new
@@ -1,22 +1,22 @@
# frozen_string_literal: true
require 'spec_helper'
describe Array do
- describe "unwrap" do
- it "to array" do
+ describe 'unwrap' do
+ it 'to array' do
arr = [1, 2, 3]
expect(arr.unwrap).to eq(arr)
end
- it "to integer" do
+ it 'to integer' do
arr = [1]
expect(arr.unwrap).to eq(1)
end
- it "to nil" do
+ it 'to nil' do
arr = []
- expect(arr.unwrap).to be_nil
+ expect(arr.unwrap.nil?).to be(true)
end
end
end