spec/grape/path_spec.rb in grape-1.0.1 vs spec/grape/path_spec.rb in grape-1.0.2

- old
+ new

@@ -29,12 +29,12 @@ path = Path.new(anything, anything, mount_path: nil) expect(path.mount_path).to be_nil end it 'splits the mount path' do - path = Path.new(anything, anything, mount_path: %w(foo bar)) - expect(path.mount_path).to eql(%w(foo bar)) + path = Path.new(anything, anything, mount_path: %w[foo bar]) + expect(path.mount_path).to eql(%w[foo bar]) end end describe '#root_prefix' do it 'is nil when no root prefix setting exists' do @@ -47,10 +47,10 @@ expect(path.root_prefix).to be_nil end it 'splits the mount path' do path = Path.new(anything, anything, root_prefix: 'hello/world') - expect(path.root_prefix).to eql(%w(hello world)) + expect(path.root_prefix).to eql(%w[hello world]) end end describe '#uses_path_versioning?' do it 'is false when the version setting is nil' do