Skip to content

Commit

Permalink
Unit test for 'help' method
Browse files Browse the repository at this point in the history
  • Loading branch information
JaniJegoroff committed Feb 28, 2015
1 parent 70a4224 commit da199de
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/spec_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ class SpecBase < Minitest::Spec
$args.first.must_equal(:id)
end
end

describe "#{klass}.help" do
it 'should return public methods' do
klass.help.must_be_kind_of(Array)
klass.h.must_be_kind_of(Array)

klass.help.must_include(:help)
klass.h.must_include(:h)

klass.help.must_equal(klass.public_methods(false))
klass.h.must_equal(klass.public_methods(false))
end
end
end

describe 'Base.fail_if_invalid' do
Expand Down

0 comments on commit da199de

Please sign in to comment.