summaryrefslogtreecommitdiffstats
path: root/spec/options.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2009-10-08 22:31:55 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-30 08:08:47 +0200
commit72a8a4e7aeff0fc93d2199c4d0cd25e3dffc1196 (patch)
tree7e7c1b2fdeb740c3032f9b1763afd5a2875d47e7 /spec/options.rb
parentc829d9395bc1152fac97ed16f2fcf6ed93fb60ee (diff)
downloadayk-72a8a4e7aeff0fc93d2199c4d0cd25e3dffc1196.zip
ayk-72a8a4e7aeff0fc93d2199c4d0cd25e3dffc1196.tar.gz
add Optioned module
Diffstat (limited to 'spec/options.rb')
-rw-r--r--spec/options.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/options.rb b/spec/options.rb
index 25741db..0fd84d5 100644
--- a/spec/options.rb
+++ b/spec/options.rb
@@ -81,6 +81,10 @@ describe AYK::Options do
end
opts.var.should eql 666
end
+ it "should be nicely included" do
+ class A__A; include AYK::Optioned end
+ A__A.options.name.should eql 'a__a'
+ end
end
#
end