Sha256: 3787d7e6a0822d5f633de14c30d20a942fb0d1b764e74f8ae3f83e71cde09392

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

shared_examples_for "presenter with shortcut color methods" do
  [:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white].each do |name|
    describe "##{name}" do
      subject { presenter.send(name) }

      it { should eq(presenter.color(name)) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rainbow-1.99.2 spec/support/presenter_shared_examples.rb