forked from bsingr/networkmanager-dbus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some new features and tests for identifying devices from an active
connection.
- Loading branch information
Steven Steffen
authored and
Steven Steffen
committed
Jan 9, 2012
1 parent
7b8a09e
commit 1bc0d67
Showing
4 changed files
with
39 additions
and
6 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
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,13 @@ | ||
module ActiveConnectionMock | ||
|
||
def all_properties | ||
data['properties'] | ||
end | ||
|
||
def devices | ||
self['Devices'].map do |x| | ||
NetworkManager::DBus::Device.new x | ||
end | ||
end | ||
|
||
end |