Sha256: b519b11d927dc5d4caa7707b34d25c335fe55ec63e600b78ffb2a274521795f5

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

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

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

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb
rainbow-2.2.2 spec/support/presenter_shared_examples.rb
rainbow-2.2.1 spec/support/presenter_shared_examples.rb