Sha256: 754de9d9a1d8a34f21062394e57dc85cd70d9f2adf1ffca6be6966a97a366fce
Contents?: true
Size: 939 Bytes
Versions: 1
Compression:
Stored size: 939 Bytes
Contents
require 'assert' module NsOptions::AssertMacros class BaseTests < Assert::Context desc "NsOptions::AssertMacros" include NsOptions::AssertMacros setup do @cls = Class.new do include NsOptions options(:test) do option :one option :two, :default => 2 option :three, :required => true option :four, :args => [5,6,7] option :five, Pathname, :default => '.' namespace :more do option :seven end end end end subject { @cls.test } should have_namespace :more should have_namespaces :more should have_options(:one, :two, :three, :four, :five) should have_option :one should have_option :two, :default => 2 should have_option :three, :required => true should have_option :four, :args => [5,6,7] should have_option :five, Pathname, :default => '.' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ns-options-0.3.0 | test/unit/ns-options/assert_macros_test.rb |