forked from sergey-chechaev/dates_from_string
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
63504c7
commit e64d75f
Showing
3 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class DatesFromString | ||
VERSION = "1.1.0" | ||
VERSION = "1.2.0" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -585,5 +585,29 @@ | |
expect(subject.get_clear_text).to eq(output) | ||
end | ||
|
||
it "find year in email one" do | ||
date_from_string = DatesFromString.new() | ||
input = '[email protected]' | ||
output = "1988" | ||
|
||
expect(date_from_string.email_date(input)).to eq(output) | ||
end | ||
|
||
it "find year in email two" do | ||
date_from_string = DatesFromString.new() | ||
input = '[email protected]' | ||
output = "1988" | ||
|
||
expect(date_from_string.email_date(input)).to eq(output) | ||
end | ||
|
||
it "find year in email three" do | ||
date_from_string = DatesFromString.new() | ||
input = '[email protected]' | ||
output = "1988" | ||
|
||
expect(date_from_string.email_date(input)).to eq(output) | ||
end | ||
|
||
end | ||
end |