-
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.
Removed the now defunced Linked#List along with tests
- Loading branch information
1 parent
ca49f50
commit fb53c38
Showing
4 changed files
with
7 additions
and
14 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 | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,5 @@ | |
require 'linked/list' | ||
|
||
module Linked | ||
def self.List(object) | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
require 'test_helper' | ||
|
||
describe Linked do | ||
it 'has a version number' do | ||
refute_nil ::Linked::VERSION | ||
end | ||
subject { ::Linked } | ||
|
||
describe '#List' do | ||
it 'returns the list back when given one' | ||
it 'inserts one or more Items into a new list' | ||
it 'converts an array to a List' | ||
it 'wraps an arbitrary object in a single Item in a new List' | ||
it 'has a version number' do | ||
refute_nil subject::VERSION | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
require 'test_helper' | ||
|
||
class ListLike | ||
include Linked::List | ||
end | ||
|
||
describe Linked::List do | ||
subject { ListLike } | ||
|
||
|
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 |
---|---|---|
|
@@ -5,3 +5,7 @@ | |
require 'linked' | ||
|
||
require 'minitest/autorun' | ||
|
||
class ListLike | ||
include Linked::List | ||
end |