test/lib/vedeu/common_test.rb in vedeu-0.5.0 vs test/lib/vedeu/common_test.rb in vedeu-0.5.1
- old
+ new
@@ -15,9 +15,17 @@
describe Common do
let(:described) { Vedeu::VedeuCommonClass }
let(:instance) { described.new }
+ describe '#demodulize' do
+ let(:klass) { described }
+
+ subject { instance.demodulize(klass) }
+
+ it { subject.must_equal('VedeuCommonClass') }
+ end
+
describe '#present?' do
subject { instance.defined_value_test(_value) }
context 'when the variable is a Fixnum' do
let(:_value) { 17 }