👮 spaces around operators

This commit is contained in:
Andy Meneely
2016-03-17 23:40:41 -04:00
parent 5e09e0f1e1
commit 310030eee4
17 changed files with 48 additions and 48 deletions
+3 -3
View File
@@ -38,14 +38,14 @@ describe Squib::Deck do
it 'explodes quantities' do
expect(Squib.csv(file: csv_file('qty.csv'))).to eq({
'Name' => %w(Ha Ha Ha Ho),
'Name' => %w(Ha Ha Ha Ho),
'Qty' => [3, 3, 3, 1],
})
end
it 'explodes quantities on specified header' do
expect(Squib.csv(explode: 'Quantity', file: csv_file('qty_named.csv'))).to eq({
'Name' => %w(Ha Ha Ha Ho),
'Name' => %w(Ha Ha Ha Ho),
'Quantity' => [3, 3, 3, 1],
})
end
@@ -65,7 +65,7 @@ describe Squib::Deck do
expect(Squib.xlsx(file: xlsx_file('basic.xlsx'))).to eq({
'Name' => %w(Larry Curly Mo),
'General Number' => %w(1 2 3), #general types always get loaded as strings with no conversion
'Actual Number' => [4.0, 5.0, 6.0], #numbers get auto-converted to integers
'Actual Number' => [4.0, 5.0, 6.0], #numbers get auto-converted to integers
})
end
+1 -1
View File
@@ -179,7 +179,7 @@ describe Squib::LayoutParser do
.with("Processing layout: 'verbal' attempts to extend a missing 'kaisersoze'")
layout = Squib::LayoutParser.load_layout(layout_file('extends-nonexists.yml'))
expect(layout).to eq({
'verbal' => {
'verbal' => {
'font_size' => 25,
'extends' => 'kaisersoze'
}
+1 -1
View File
@@ -98,7 +98,7 @@ def mock_cairo(strio)
allow(pango).to receive(:height).and_return(25)
allow(pango).to receive(:width).and_return(25)
allow(pango).to receive(:index_to_pos).and_return(Pango::Rectangle.new(0, 0, 0, 0))
allow(pango).to receive(:extents).and_return([Pango::Rectangle.new(0, 0, 0, 0)]*2)
allow(pango).to receive(:extents).and_return([Pango::Rectangle.new(0, 0, 0, 0)] * 2)
allow(pango).to receive(:iter).and_return(iter)
allow(pango).to receive(:alignment).and_return(Pango::Layout::Alignment::LEFT)
allow(pango).to receive(:text).and_return("foo")