Skip to content

Commit

Permalink
fix rspec spec to support 1.0.8
Browse files Browse the repository at this point in the history
git-svn-id: http://ar-code.svn.engineyard.com/plugins/model_stubbing@77 d98f8484-0aa7-43af-80ea-302c351499d6
  • Loading branch information
rick committed Nov 23, 2007
1 parent 354e3f1 commit 49b9cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/model_stubbing_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require File.join(File.dirname(__FILE__), 'spec_helper')

Spec::DSL::ExampleGroup.send :extend, ModelStubbing
# support rspec 1.0.8 and edge
(Spec::DSL.const_defined?(:ExampleGroup) ? Spec::DSL::ExampleGroup : Spec::DSL::Example).extend ModelStubbing

describe "Sample Stub Usage" do
define_models do
Expand Down

0 comments on commit 49b9cb3

Please sign in to comment.