]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/spec/autotest/discover_spec.rb
api06: Fix typo.
[rails.git] / vendor / gems / rspec-1.1.2 / spec / autotest / discover_spec.rb
1 require File.dirname(__FILE__) + "/../autotest_helper"
2
3 module DiscoveryHelper
4   def load_discovery
5     require File.dirname(__FILE__) + "/../../lib/autotest/discover"
6   end
7 end
8
9
10 class Autotest
11   describe Rspec, "discovery" do
12     include DiscoveryHelper
13     
14     it "should add the rspec autotest plugin" do
15       Autotest.should_receive(:add_discovery).and_yield
16       load_discovery
17     end
18   end  
19 end