Sha256: 2432a3e0b6a5efbd342090021cf0563dd775afd38a31afd790396a75cc23a898
Contents?: true
Size: 619 Bytes
Versions: 4
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper' describe Daigaku::Coloring do subject do class Example include Daigaku::Coloring end Example.new end it 'has the protected method #init_colors' do expect(subject.protected_methods).to include :init_colors end [ :COLOR_TEXT, :COLOR_TEXT_EMPHASIZE, :COLOR_HEADING, :COLOR_RED, :COLOR_GREEN, :COLOR_YELLOW, :BACKGROUND, :FONT, :FONT_HEADING, :FONT_EMPHASIZE, :RED, :GREEN, :YELLOW ].each do |const| it "has the constant #{const}" do expect(Example.const_defined?(const)).to be true end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
daigaku-1.0.0 | spec/daigaku/coloring_spec.rb |
daigaku-0.6.0 | spec/daigaku/coloring_spec.rb |
daigaku-0.5.0 | spec/daigaku/coloring_spec.rb |
daigaku-0.4.0 | spec/daigaku/coloring_spec.rb |