Sha256: a590c380aa87f8f719bfa8b1ca78191ce169a5bf2f5cbc82e3176c0e178a20c8

Contents?: true

Size: 321 Bytes

Versions: 8

Compression:

Stored size: 321 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class OptionGroupTest < Test::Unit::TestCase

  def test_invalid_with_empty_attributes
    option_group = OptionGroup.new
    assert !option_group.valid?
    assert option_group.errors.invalid?(:option)
    assert option_group.errors.invalid?(:option_value)
  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/test/unit/option_group_test.rb
railscart-0.0.2 starter_app/vendor/plugins/railscart/test/unit/option_group_test.rb
railscart-0.0.4 starter_app/vendor/plugins/railscart/test/unit/option_group_test.rb
railscart-0.0.3 starter_app/vendor/plugins/railscart/test/unit/option_group_test.rb
spree-0.0.6 starter-app/vendor/plugins/spree/test/unit/option_group_test.rb
spree-0.0.5 starter-app/vendor/plugins/spree/test/unit/option_group_test.rb
spree-0.0.7 starter-app/vendor/plugins/spree/test/unit/option_group_test.rb
spree-0.0.8 starter-app/vendor/plugins/spree/test/unit/option_group_test.rb