test/lib/vedeu/dsl/dsl_test.rb in vedeu-0.8.9 vs test/lib/vedeu/dsl/dsl_test.rb in vedeu-0.8.10
- old
+ new
@@ -21,16 +21,17 @@
end # DSLTestClass
describe DSL do
let(:described) { Vedeu::DSL }
- let(:instance) { Vedeu::DSLModuleTestClass.new(model, client) }
+ let(:included_described) { Vedeu::DSLModuleTestClass }
+ let(:included_instance) { included_described.new(model, client) }
let(:model) { Vedeu::DSLModelTestClass.new(_name) }
let(:client) {}
let(:_name) {}
describe '#name' do
- subject { instance.name }
+ subject { included_instance.name }
context 'when the model is nil' do
let(:model) {}
it { subject.must_equal(nil) }