spec/configurability/config_spec.rb in configurability-4.0.0 vs spec/configurability/config_spec.rb in configurability-4.1.0
- old
+ new
@@ -158,9 +158,14 @@
expect( config.section ).to respond_to( :subsection )
expect( config ).not_to respond_to( :pork_sausage )
end
+ it "supports two-argument respond_to?" do
+ expect( config.respond_to?(:section, true) ).to be_truthy
+ end
+
+
it "contains values specified in the source" do
# section:
# subsection:
# subsubsection: value
expect( config.section.subsection.subsubsection ).to eq( 'value' )