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 1134bb5 commit 2a802c3Copy full SHA for 2a802c3
spec/lib/ruby_gnuplot/plot_spec.rb
@@ -177,4 +177,22 @@
177
end
178
179
180
+
181
+ describe 'method missing' do
182
+ it 'delegates to set call' do
183
+ expect { plot.fake_field('value') }
184
+ .to change(plot, :settings)
185
+ .from([])
186
+ .to([[:set, 'fake_field', 'value']])
187
+ end
188
189
+ context 'when field should be quoted' do
190
+ it 'delegates to set call and quote it' do
191
+ expect { plot.output('value') }
192
193
194
+ .to([[:set, 'output', '"value"']])
195
196
197
198
0 commit comments