Skip to content

Instantly share code, notes, and snippets.

@WaYdotNET
Created October 4, 2010 12:18
Show Gist options
  • Save WaYdotNET/609611 to your computer and use it in GitHub Desktop.
Save WaYdotNET/609611 to your computer and use it in GitHub Desktop.
DataMapper::Visualizer::Project library
- should add the include directories to the $LOAD_PATH
- should remove the include directories to the $LOAD_PATH
- should require the specified paths
DataMapper::Visualizer::Project rails
- should add the include directories to the $LOAD_PATH
- should remove the include directories to the $LOAD_PATH
- should require all paths that match the specified glob patterns
DataMapper::Visualizer::Visualization
- should detect which inflector DataMapper is using
DataMapper::Visualizer::Visualization defaults
- should return the class names of Classes
- should return the class names of Objects (FAILED - 1)
- should return the names of properties
- should return the names of models
DataMapper::Visualizer::Visualization repository names
- should map the DataMapper repository names
DataMapper::Visualizer::Visualization Schema naming convention
- should return the database and table names for a model name
DataMapper::Visualizer::Visualization full names
- should not demodulize the names of Classes
- should not demodulize the names of Objects (FAILED - 2)
- should not demodulize property type names (FAILED - 3)
- should not demodulize model names
DataMapper::Visualizer
- should define a VERSION constant (FAILED - 4)
1)
'DataMapper::Visualizer::Visualization defaults should return the class names of Objects' FAILED
expected: "Property",
got: "Text" (using ==)
./spec/visualization_spec.rb:26:
2)
'DataMapper::Visualizer::Visualization full names should not demodulize the names of Objects' FAILED
expected: "DataMapper::Property",
got: "DataMapper::Property::Text" (using ==)
./spec/visualization_spec.rb:81:
3)
'DataMapper::Visualizer::Visualization full names should not demodulize property type names' FAILED
expected: "DataMapper::Types::Text",
got: "DataMapper::Property::Text" (using ==)
./spec/visualization_spec.rb:85:
4)
'DataMapper::Visualizer should define a VERSION constant' FAILED
expected: true,
got: false (using ==)
./spec/dm_visualizer_spec.rb:7:
Finished in 0.0336 seconds
18 examples, 4 failures
rake aborted!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment