Sha256: 869c1eea2bdae61ce5699af906b5998a3b559b95a3031b1b2716cc9088027217
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
require 'test_helper' module Vedeu describe RefreshBuffer do let(:described) { Vedeu::RefreshBuffer } let(:instance) { described.new(_name) } let(:_name) { 'Vedeu::RefreshBuffer' } describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@name').must_equal(_name) } end describe '.by_name' do subject { described.by_name(_name) } context 'when the name is not present' do let(:_name) { '' } it { proc { subject }.must_raise(Vedeu::MissingRequired) } end # describe '.by_name' do # let(:_name) { 'aluminium' } # let(:buffer) { Vedeu::Null::Buffer.new(name: _name) } # subject { described.by_name(_name) } # it { # Vedeu.buffers.expects(:by_name).with(_name).returns(buffer) # buffer.expects(:render) # subject # } # end context 'when the name is present' do # @todo Add more tests. # it { skip } end end describe '#by_name' do it { instance.must_respond_to(:by_name) } end end # RefreshBuffer end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems