forked from datamapper/dm-migrations
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change be_true and be_false to be(true) and be(false) in specs
- Loading branch information
Showing
6 changed files
with
32 additions
and
32 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 | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
shared_examples_for "require 'dm-migrations'" do | ||
|
||
it "should include the migration api in the DataMapper namespace" do | ||
DataMapper.respond_to?(:migrate! ).should be_true | ||
DataMapper.respond_to?(:auto_migrate! ).should be_true | ||
DataMapper.respond_to?(:auto_upgrade! ).should be_true | ||
DataMapper.respond_to?(:auto_migrate_up!, true).should be_true | ||
DataMapper.respond_to?(:auto_migrate_down!, true).should be_true | ||
DataMapper.respond_to?(:migrate! ).should be(true) | ||
DataMapper.respond_to?(:auto_migrate! ).should be(true) | ||
DataMapper.respond_to?(:auto_upgrade! ).should be(true) | ||
DataMapper.respond_to?(:auto_migrate_up!, true).should be(true) | ||
DataMapper.respond_to?(:auto_migrate_down!, true).should be(true) | ||
end | ||
|
||
%w[ Repository Model ].each do |name| | ||
it "should include the migration api in DataMapper::#{name}" do | ||
(DataMapper.const_get(name) < DataMapper::Migrations.const_get(name)).should be_true | ||
(DataMapper.const_get(name) < DataMapper::Migrations.const_get(name)).should be(true) | ||
end | ||
end | ||
|
||
it "should include the migration api into the adapter" do | ||
@adapter.respond_to?(:storage_exists? ).should be_true | ||
@adapter.respond_to?(:field_exists? ).should be_true | ||
@adapter.respond_to?(:upgrade_model_storage).should be_true | ||
@adapter.respond_to?(:create_model_storage ).should be_true | ||
@adapter.respond_to?(:destroy_model_storage).should be_true | ||
@adapter.respond_to?(:storage_exists? ).should be(true) | ||
@adapter.respond_to?(:field_exists? ).should be(true) | ||
@adapter.respond_to?(:upgrade_model_storage).should be(true) | ||
@adapter.respond_to?(:create_model_storage ).should be(true) | ||
@adapter.respond_to?(:destroy_model_storage).should be(true) | ||
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