Sha256: e940d052d834803fd14bd7efdaa9cf8e3e1ad8cab74b4cad7ef1842ae2e70904

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

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_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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gemstone-0.4.1 test/options_test.rb
gemstone-0.4 test/options_test.rb
gemstone-0.3 test/options_test.rb
gemstone-0.2 test/options_test.rb