This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is currently (very) broken. EpochTime behaves correctly, but dm-…
…migrations sees it as a TIME, not an INT
- Loading branch information
Showing
5 changed files
with
68 additions
and
13 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,6 @@ | |||
## MAC OS | ## MAC OS | ||
.DS_Store | .DS_Store | ||
._* | |||
|
|
||
## TEXTMATE | ## TEXTMATE | ||
*.tmproj | *.tmproj | ||
|
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 |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
require 'spec_helper' | |||
|
|||
try_spec do | |||
|
|||
require './spec/fixtures/person' | |||
|
|||
describe DataMapper::TypesFixtures::Person do | |||
supported_by :all do | |||
before :all do | |||
@resource = DataMapper::TypesFixtures::Person.new(:name => '') | |||
end | |||
|
|||
describe 'with a birthday' do | |||
before :all do | |||
@resource.birthday = '1983-05-03' | |||
end | |||
|
|||
describe 'when dumped and loaded again' do | |||
before :all do | |||
#puts DataMapper::TypesFixtures::Person.properties[:birthday].valid?(Time.now) | |||
@resource.save.should be(true) | |||
@resource.reload | |||
end | |||
|
|||
it 'has a valid birthday' do | |||
@resource.birthday.should == ::Time.parse('1983-05-03') | |||
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