Sha256: e90c331cfc403ee7df575f0fdfcc0c297da83c417fc4d6f0e6d44ca5ff39b7a2
Contents?: true
Size: 963 Bytes
Versions: 1
Compression:
Stored size: 963 Bytes
Contents
# This code is free software; you can redistribute it and/or modify it under the # terms of the new BSD License. # # Copyright (c) 2009, Sebastian Staudt require 'test_helper' class ActionTests < Test::Unit::TestCase context 'A Rubikon action' do should 'throw an exception when no code block is given' do assert_raise Rubikon::BlockMissingError do Rubikon::Action.new end assert_raise Rubikon::BlockMissingError do options = {} Rubikon::Action.new options end end should 'not raise an exception when created without options' do action_options = { :description => 'this is an action', :param_type => String } assert_nothing_raised do action = Rubikon::Action.new action_options do end assert_equal action_options[:description], action.description assert_equal action_options[:param_type], action.param_type end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubikon-0.2.0 | test/action_tests.rb |