spec/args/sheet_spec.rb in squib-0.9.0 vs spec/args/sheet_spec.rb in squib-0.10.0

- old
+ new

@@ -2,15 +2,15 @@ require 'squib/args/sheet' describe Squib::Args::Sheet do context 'dsl overrides' do - subject(:sheet) { Squib::Args::Sheet.new({}, {file: 'foo'}) } + subject(:sheet) { Squib::Args::Sheet.new({}, { file: 'foo' }) } it 'works when specified' do sheet.load!({}) # go right to defaults - expect(sheet.file).to eq( 'foo' ) # dsl method default override + expect(sheet.file).to eq('foo') # dsl method default override end end context 'rows and colums' do @@ -27,28 +27,28 @@ sheet.load! opts expect(sheet).to have_attributes(columns: 1, rows: 1) end it 'computes properly on non-integer' do - opts = {columns: 1, rows: :infinite} + opts = { columns: 1, rows: :infinite } sheet.load! opts - expect(sheet).to have_attributes( columns: 1, rows: 4 ) + expect(sheet).to have_attributes(columns: 1, rows: 4) end it 'computes properly on unspecified rows' do - opts = {columns: 1} + opts = { columns: 1 } sheet.load! opts - expect(sheet).to have_attributes( columns: 1, rows: 4 ) + expect(sheet).to have_attributes(columns: 1, rows: 4) end it 'computes properly on unspecified, too-big column' do opts = {} sheet.load! opts - expect(sheet).to have_attributes( columns: 5, rows: 1 ) + expect(sheet).to have_attributes(columns: 5, rows: 1) end it 'fails on a non-integer column' do - opts = {columns: :infinite} + opts = { columns: :infinite } expect { sheet.load!(opts) }.to raise_error('columns must be an integer') end