Sha256: 9b7d6a32543f082ac350fa03ac7ff1119d5e0e722938c0ed46b1c7b7ad62de1b
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
Given(/^the domain objects are defined$/) do |code_sample| Object.module_eval(code_sample) end Given(/^a database connection is established$/) do |code_sample| example_eval(code_sample) end Given(/^the associations are defined in the mapper configuration$/) do |code_sample| example_eval(code_sample) end Given(/^a mapper is instantiated$/) do |code_sample| example_eval(code_sample) end Given(/^a conventionally similar database schema for table "(.*?)"$/) do |table_name, schema_table| create_table(table_name, parse_schema_table(schema_table)) end When(/^a new graph of objects are created$/) do |code_sample| @objects_to_be_saved_sample = code_sample end When(/^the new graph is saved$/) do |save_objects_code| example_eval( [@objects_to_be_saved_sample, save_objects_code].join("\n") ) end When(/^the following query is executed$/) do |code_sample| @query = code_sample @result = example_eval(code_sample) end Then(/^the persisted user object is returned with lazy associations$/) do |expected_inspection_string| expect(normalise_inspection_string(@result.inspect)) .to eq(normalise_inspection_string(expected_inspection_string)) end Then(/^the user's posts will be loaded once the association proxy receives an Enumerable message$/) do |expected_inspection_string| posts = @result.posts.to_a expect(normalise_inspection_string(posts.inspect)) .to eq(normalise_inspection_string(expected_inspection_string)) end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
terrestrial-0.1.1 | features/step_definitions/example_steps.rb |
sequel_mapper-0.0.3 | features/step_definitions/example_steps.rb |