test/lib/vedeu/dsl/geometry_test.rb in vedeu-0.8.15 vs test/lib/vedeu/dsl/geometry_test.rb in vedeu-0.8.16
- old
+ new
@@ -2,14 +2,23 @@
require 'test_helper'
module Vedeu
+ class DSLGeometryTestClass
+
+ include Vedeu::DSL::Geometry
+
+ end # DSLGeometryTestClass
+
module DSL
describe Geometry do
+ let(:described) { Vedeu::DSL::Geometry }
+ let(:included_described) { Vedeu::DSLGeometryTestClass }
+
# describe '#geometry' do
# context 'when the required block is not given' do
# subject { instance.geometry }
# it { proc { subject }.must_raise(Vedeu::Error::RequiresBlock) }
@@ -27,9 +36,15 @@
# context 'when the name is given' do
# # @todo Add more tests.
# end
# end
# end
+
+ describe '.included' do
+ subject { described.included(included_described) }
+
+ it { subject.must_be_instance_of(Class) }
+ end
end # Geometry
end # DSL