diff --git a/spec/em-ftpd/configurator_spec.rb b/spec/em-ftpd/configurator_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/em-ftpd/configurator_spec.rb
+++ b/spec/em-ftpd/configurator_spec.rb
@@ -1,4 +1,5 @@
 require 'spec_helper'
+require 'ostruct'
 
 describe EM::FTPD::Configurator do  
   describe "initialization" do    
@@ -27,8 +28,7 @@ describe EM::FTPD::Configurator do
   describe "#uid" do
     it "should retrieve the user id based on the user name" do
       subject.user 'justin'
-      Etc.should_receive(:getpwnam).with('justin').
-        and_return(Struct::Passwd.new('staff', '*********', 501, 20, 'Justin Leitgeb', '/Users/justin', '/bin/bash', 0, '', 0))
+      Etc.should_receive(:getpwnam).with('justin').and_return(OpenStruct.new(:uid => 501))
         
       subject.uid.should == 501
     end
@@ -142,4 +142,4 @@ describe EM::FTPD::Configurator do
       expect { subject.check! }.to raise_error SystemExit
     end
   end
-end
\ No newline at end of file
+end
reduce the fragility of a test double

* all we care about is that an object that responds to #uid is returned,
  so just use an OpenStruct