This file contains hidden or 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
socket = class_double(TCPSocket) | |
expect(socket).to receive(:is_a?).with(TCPSocket) { true } | |
expect(TCPSocket).to receive(:new) { socket } |
This file contains hidden or 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
# If your test depends on a specific provider being used, or a provider which has | |
# a specific attribute, such as versionable, the provider will fail the selection | |
# round if its commands aren't present on the system that the test is running on. | |
# For example, if running your rspec tests on your OS X development machine, | |
# and your manifests include : | |
# package { 'java': | |
# ensure => '1.7.0+update67' | |
# } | |
# | |
# The test will fail with the error: |
NewerOlder