Sha256: b9131553c5ec9a6073665174169c31efb420cac3e176735caf4d85198f07e3d9
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
require 'test_helper' module Vedeu module Buffers describe Refresh do let(:described) { Vedeu::Buffers::Refresh } let(:instance) { described.new(_name) } let(:_name) { 'Vedeu::Buffers::Refresh' } let(:ready) { true } before do Vedeu.stubs(:ready?).returns(ready) end 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 Vedeu is not yet ready' do let(:ready) { false } it { subject.must_equal(nil) } end context 'when Vedeu is ready' do # @todo Add more tests. # it { skip } end end describe '#by_name' do it { instance.must_respond_to(:by_name) } end end # Refresh end # Buffers end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.6.22 | test/lib/vedeu/buffers/refresh_test.rb |