Sha256: b1ae0210b5006ff25dfd22e4da77736a6c65862a714b425d1e25e8eb2cd21991
Contents?: true
Size: 749 Bytes
Versions: 7
Compression:
Stored size: 749 Bytes
Contents
require "spec_helper" module Chanko describe ActiveIf do around do |example| origin, $stderr = $stderr, StringIO.new example.run $stderr = origin end describe ".new" do context "with option arguments" do it "prints warning message on standard error output" do ActiveIf.new(foo: "bar") expect($stderr.string).to match(/\Aoptions in ActiveIf#new are deprecated and are never used at #{__FILE__}/) end end end describe "#options" do it "prints warning message on standard error output" do ActiveIf.new.options expect($stderr.string).to match(/\AActiveIf#options is deprecated and is never used at #{__FILE__}/) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems