~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to vendor/gems/rspec/spec/autotest/discover_spec.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mto: (3.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080726154345-1fmgo76b4l72ulvc
ImportĀ upstreamĀ versionĀ 0.24.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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