Sha256: 5eb76f2c4ddafbf061cb612e923c036dc42ae2419d55cf6a318e9f0e836d346e

Contents?: true

Size: 785 Bytes

Versions: 10

Compression:

Stored size: 785 Bytes

Contents

require 'test_helper'

module Resources
  
  class PropertyDefinitionTest < Test::Unit::TestCase
  
    context PropertyDefinition do
    
      context "project_options" do
        
        should "collect all property definitions into an array of arrays" do
          property1 = stub("PropertyDefinition", :column_name => "cp_name", :name => "Name")
          property2 = stub("PropertyDefinition", :column_name => "cp_accepted_on_iteration_card_id", :name => "Accepted in Iteration")
          PropertyDefinition.expects(:find).with(:all).returns([property1, property2])
          
          assert_equal PropertyDefinition.project_options, [[:cp_name, "Name"], [:cp_accepted_on_iteration_card_id, "Accepted in Iteration"]]
        end
      
      end
    
    end
  
  end
  
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
schubert-minglr-1.2.0 test/resources/property_definition_test.rb
schubert-minglr-1.3.0 test/resources/property_definition_test.rb
schubert-minglr-1.3.1 test/resources/property_definition_test.rb
schubert-minglr-1.3.11 test/resources/property_definition_test.rb
schubert-minglr-1.3.2 test/resources/property_definition_test.rb
schubert-minglr-1.3.3 test/resources/property_definition_test.rb
schubert-minglr-1.3.5 test/resources/property_definition_test.rb
schubert-minglr-1.3.8 test/resources/property_definition_test.rb
schubert-minglr-1.3.9 test/resources/property_definition_test.rb
minglr-1.3.11 test/resources/property_definition_test.rb