spec/support/shared_examples.rb in chef-sugar-1.1.0 vs spec/support/shared_examples.rb in chef-sugar-1.2.0.beta.1

- old
+ new

@@ -6,10 +6,10 @@ expect(described_class.foo).to eq(klass.new.foo) end described_class.instance_methods.each do |name| it "defines a `#{name}` DSL method" do - expect(Chef::Sugar::DSL.instance_methods).to include(name) + expect(Chef::Sugar::DSL).to be_method_defined(name) end it 'has n-1 arity from the parent method' do method = Chef::Sugar::DSL.instance_method(name) expect(method.arity).to eq(described_class.method(name).arity - 1)