Skip to content

Commit

Permalink
Merge pull request #6 from slross16/fake_socket-spec-fix
Browse files Browse the repository at this point in the history
Fix FakeSocket tests: null socket object if tests aren't run sequentially.
  • Loading branch information
bougyman committed Dec 5, 2014
2 parents a7a939a + 15b8710 commit 84b618c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fsr/fake_socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ def fake_buffer
Bacon.summary_at_exit

describe FSR::FakeSocket do
it 'can be initialized' do

before do
@socket = FSR::FakeSocket.new('google.com', 80)
end

it 'can be initialized' do
@socket.should.not.be.nil
end

Expand Down

0 comments on commit 84b618c

Please sign in to comment.