Top Level Namespace

Defined Under Namespace

Modules: Bug7611, Bug7805, Bug8302, Builder, Custom, Daemonize, Daemons, DiscoveryHelper, ExampleExpectations, Foo, Gem, HaveSpecHelper, Kernel, Logging, Mack, RCov, Rack, Rant, Rcov, RubyForker, Spec, StoryHelper, Test, TestUnitSpecHelper Classes: ATest, Autotest, BaseClass, BlankSlate, Class, Configatron, ControllerGenerator, ControllerHelperGenerator, DispatchServlet, FakeReporter, Fixnum, FlexMock, Genosaurus, Hash, LiarLiarPantsOnFire, Lockfile, MackApplicationGenerator, Module, MySpec, Object, PassengerGenerator, PluginGenerator, PortletGenerator, ReentrantMutex, Regexp, RspecCommandError, SomethingExpected, SpecParserSubject, String, SubClass, Substance, SubstanceTester, Symbol, TestCaseThatFails, TestCaseThatPasses, TestCaseWithErrors, ViewHelperGenerator

Constant Summary collapse

GEM_PATHS_MOD =
true

Instance Method Summary collapse

Methods included from Spec::Story::Extensions::Main

#Story, #run_story, #steps_for, #with_steps_for

Methods included from Spec::Extensions::Main

#describe, #share_as, #share_examples_for

Instance Method Details

#Lockfile(path, *a, &b) ⇒ Object



557
558
559
560
561
# File 'lib/gems/lockfile-1.4.3/lib/lockfile.rb', line 557

def Lockfile path, *a, &b
#--{{{
  Lockfile.new(path, *a, &b)
#--}}}
end

#with_sandboxed_configObject



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/gems/rspec-1.1.11/spec/spec_helper.rb', line 60

def with_sandboxed_config
  attr_reader :config
  
  before(:each) do
    @config = ::Spec::Example::Configuration.new
    @original_configuration = ::Spec::Runner.configuration
    spec_configuration = @config
    ::Spec::Runner.instance_eval {@configuration = spec_configuration}
  end
  
  after(:each) do
    original_configuration = @original_configuration
    ::Spec::Runner.instance_eval {@configuration = original_configuration}
    ::Spec::Example::ExampleGroupFactory.reset
  end
  
  yield
end

#with_sandboxed_optionsObject



45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/gems/rspec-1.1.11/spec/spec_helper.rb', line 45

def with_sandboxed_options
  attr_reader :options
  
  before(:each) do
    @original_rspec_options = ::Spec::Runner.options
    ::Spec::Runner.use(@options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new))
  end

  after(:each) do
    ::Spec::Runner.use(@original_rspec_options)
  end
  
  yield
end