require 'test_helper' module Vedeu module Cursors class DSLTestClass include Vedeu::Cursors::DSL end # DSLTestClass describe DSL do let(:described) { Vedeu::Cursors::DSL } let(:instance) { Vedeu::Cursors::DSLTestClass.new } describe '#cursor' do it { instance.must_respond_to(:cursor) } end describe '#cursor!' do it { instance.must_respond_to(:cursor!) } end describe '#show_cursor!' do it { instance.must_respond_to(:show_cursor!) } end describe '#no_cursor!' do it { instance.must_respond_to(:no_cursor!) } end describe '#hide_cursor!' do it { instance.must_respond_to(:hide_cursor!) } end # describe '#cursor' do # let(:_value) {} # before { Vedeu.cursors.reset } # subject { instance.cursor(_value) } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(false) # end # context 'when the value is false' do # let(:_value) { false } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(false) # end # end # context 'when the value is nil' do # let(:_value) {} # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(false) # end # end # context 'when the value is :show' do # let(:_value) { :show } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(true) # end # end # context 'when the value is true' do # let(:_value) { true } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(true) # end # end # context 'when the value is :yes' do # let(:_value) { :yes } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(true) # end # end # end # describe '#cursor!' do # subject { instance.cursor! } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(true) # end # end # describe '#no_cursor!' do # subject { instance.no_cursor! } # it do # subject # Vedeu.cursors.find('actinium').visible?.must_equal(false) # end # end end # DSL end # Cursors end # Vedeu