test/facets/test_facet.rb in reality-facets-1.3.0 vs test/facets/test_facet.rb in reality-facets-1.4.0

- old
+ new

@@ -61,16 +61,25 @@ assert_equal false, project.respond_to?(:facet_gwt_rpc) assert_equal true, project.imit? assert_equal true, project.respond_to?(:imit) assert_equal true, project.respond_to?(:facet_imit) assert_equal 'GwtMyProject', project.imit.name + assert_equal :imit, project.imit.facet_key + assert_equal :project, project.imit.target_key + assert_equal :imit, project.imit.class.facet_key + assert_equal :project, project.imit.class.target_key # These methods all test that FacetModule has been mixed in. assert_equal 'GwtMyProject', project.facet(:imit).name assert_equal true, project.facet_enabled?(:imit) assert_equal [:gwt, :gwt_rpc, :imit], project.enabled_facets assert_equal [:gwt, :gwt_rpc, :imit], component.enabled_facets + + assert_equal :imit, component.imit.facet_key + assert_equal :component, component.imit.target_key + assert_equal :imit, component.imit.class.facet_key + assert_equal :component, component.imit.class.target_key # Ensure there is a link back to the container using inverse_access_method assert_equal project, project.imit.project assert_equal project, project.imit.parent assert_equal component, component.imit.comp