Sha256: 21f8c01949540c78333a14bb101b3f98e204f9ce6583d9521a7dd3ecffac667c

Contents?: true

Size: 281 Bytes

Versions: 11

Compression:

Stored size: 281 Bytes

Contents

module Berkshelf
  shared_examples 'a formatter object' do
    BaseFormatter.instance_methods(false).each do |name|
      next if name == :cleanup_hook

      it "implements ##{name}" do
        expect(subject.method(name).owner).to eq(described_class)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
berkshelf-3.1.5 spec/support/shared_examples/formatter.rb
berkshelf-3.1.4 spec/support/shared_examples/formatter.rb
berkshelf-3.1.3 spec/support/shared_examples/formatter.rb
berkshelf-3.1.2 spec/support/shared_examples/formatter.rb
berkshelf-3.1.1 spec/support/shared_examples/formatter.rb
berkshelf-3.1.0 spec/support/shared_examples/formatter.rb
berkshelf-3.0.1 spec/support/shared_examples/formatter.rb
berkshelf-3.0.0 spec/support/shared_examples/formatter.rb
berkshelf-3.0.0.rc1 spec/support/shared_examples/formatter.rb
berkshelf-3.0.0.beta9 spec/support/shared_examples/formatter.rb
berkshelf-3.0.0.beta8 spec/support/shared_examples/formatter.rb