require './test/test_helper' class OptionsTest < GemStoneTest def setup @valid_options = { :name => 'My gem', :author => 'Raul Murciano', :email => 'raul@murciano.net', :homepage => 'http://github.com/raul/my_gem', :description => 'A short description goes here', :summary => 'Lorem ipsum and so on', :executable => true } end def test_version assert_equal '0.1', GemStone::VERSION end def test_required_options_are_checked GemStone::OptionsValidator::REQUIRED_OPTIONS.each do |option| @valid_options.delete(option) assert_raises GemStone::MissingOption do GemStone::Generator.new @valid_options end end end end