We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91fca06 commit 0ba3073Copy full SHA for 0ba3073
.rubocop.yml
@@ -7,3 +7,7 @@ AllCops:
7
RSpec/DescribeClass:
8
Exclude:
9
- 'spec/**/*_spec.rb'
10
+
11
+Metrics/BlockLength:
12
+ Exclude:
13
+ - 'spec/**/*_spec.rb'
spec/lib/ruby_gnuplot/plot_spec.rb
@@ -198,4 +198,23 @@
198
end
199
200
201
202
+ describe '#style' do
203
+ subject(:plot) do
204
+ described_class.new do |p|
205
+ p.title 'My title'
206
+ p.style do |style|
207
+ style.ls = 1
208
+ end
209
210
211
212
+ let(:expected_output) do
213
+ /^set title "My title"\nset style line \d+ ls 1\n$/
214
215
216
+ it 'adds style to gplot output' do
217
+ expect(plot.to_gplot).to match(expected_output)
218
219
220
0 commit comments