Permalink
Browse files

fix deprecated mock setup

  • Loading branch information...
1 parent a37fc54 commit 23621c50f8ca8b0f4bdaa3ec74e5a68ec082aa7a @bleything committed Nov 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/interface_spec.rb
View
@@ -72,8 +72,8 @@
@interface.should_receive( :require ).with( path )
# stub out the rest of #use
- Object.should_receive( :module_eval ).and_return(
- mock( 'foo', :null_object => true )
+ Object.should_receive( :module_eval ).and_return(
+ mock( 'foo' ).as_null_object
)
@interface.use( @driver_name )

0 comments on commit 23621c5

Please sign in to comment.