forked from cardmagic/dm-core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Kubb
committed
Apr 10, 2008
1 parent
81d2787
commit cef2804
Showing
11 changed files
with
69 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,17 +1,17 @@ | |||
require 'pathname' | require 'pathname' | ||
require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper' | require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper' | ||
|
|
||
require __DIR__.parent.parent + 'lib/data_mapper' | require ROOT_DIR + 'lib/data_mapper' | ||
|
|
||
begin | begin | ||
require 'do_mysql' | require 'do_mysql' | ||
|
|
||
DataMapper.setup(:mysql, "mysql://localhost/dm_integration_test") | DataMapper.setup(:mysql, "mysql://localhost/dm_integration_test") | ||
|
|||
rescue LoadError => e | rescue LoadError => e | ||
describe 'do_mysql' do | describe 'do_mysql' do | ||
it 'should be required' do | it 'should be required' do | ||
fail "MySQL integration specs not run! Could not load do_mysql: #{e}" | fail "MySQL integration specs not run! Could not load do_mysql: #{e}" | ||
end | end | ||
end | end | ||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,13 @@ | |||
require 'pathname' | require ROOT_DIR + 'lib/data_mapper/adapters/data_objects_adapter' | ||
require Pathname(__FILE__).dirname.expand_path + 'spec_helper' | |||
require __DIR__.parent + 'lib/data_mapper/adapters/data_objects_adapter' | |||
|
|
||
module DataMapper | module DataMapper | ||
module Adapters | module Adapters | ||
class MockAdapter < DataMapper::Adapters::DataObjectsAdapter | class MockAdapter < DataMapper::Adapters::DataObjectsAdapter | ||
|
|||
def create(repository, instance) | def create(repository, instance) | ||
instance | instance | ||
end | end | ||
|
|||
end | end | ||
end | end | ||
end | end |
Oops, something went wrong.