mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
13 lines
404 B
Ruby
13 lines
404 B
Ruby
require_relative 'spec_helper'
|
|
|
|
RSpec.describe 'AwesomePrint' do
|
|
describe 'Utility methods' do
|
|
it 'should merge options' do
|
|
ap = AwesomePrint::Inspector.new
|
|
ap.send(:merge_options!, { color: { array: :black }, indent: 0 })
|
|
options = ap.instance_variable_get('@options')
|
|
expect(options[:color][:array]).to eq(:black)
|
|
expect(options[:indent]).to eq(0)
|
|
end
|
|
end
|
|
end
|