Skip to content

Commit

Permalink
ref: ApiStroke.ToJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Yar04ek committed Dec 13, 2023
1 parent 59ea04f commit dd2fe73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/docx/smoke/api_stroke_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
.alternate_content.office2010_content.graphic.type).to eq(:shape)
expect(docx.elements[1].nonempty_runs.first.text).to include('"type":"stroke"')
json = JSON.parse(docx.elements[1].nonempty_runs.first.text)
stroke = json['graphic']['spPr']['ln']['fill']['fill']['color']['color']['rgba']
expect(stroke['red']).to eq(51)
expect(stroke['green']).to eq(51)
expect(stroke['blue']).to eq(51)
rgba_from_stroke = json['graphic']['spPr']['ln']['fill']['fill']['color']['color']['rgba']
expect(rgba_from_stroke['red']).to eq(51)
expect(rgba_from_stroke['green']).to eq(51)
expect(rgba_from_stroke['blue']).to eq(51)
end
end

0 comments on commit dd2fe73

Please sign in to comment.