Sha256: 9bcc9c135620a989681401d03c32c42dfb0fc682a70abd3eaeb9888b4f772e9e

Contents?: true

Size: 691 Bytes

Versions: 8

Compression:

Stored size: 691 Bytes

Contents

require 'ruby_app'

shared_context 'application' do

  before(:all) do
    RubyApp::Configuration.load!([File.join(RubyApp::ROOT, %w[configuration.yml])])
    RubyApp::Log.open!
    RubyApp::Application.create!
  end

  after(:all) do
    RubyApp::Application.destroy!
    RubyApp::Log.close!
    RubyApp::Configuration.unload!
  end

end

shared_context 'request' do
  include_context 'application'

  before(:each) do
    RubyApp::Request.create!
    RubyApp::Response.create!
    RubyApp::Language.load!
    RubyApp::Session.load!
  end

  after(:each) do
    RubyApp::Session.unload!
    RubyApp::Language.unload!
    RubyApp::Response.destroy!
    RubyApp::Request.destroy!
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
RubyApp-0.2.7 spec/support/shared.rb
RubyApp-0.2.6 spec/support/shared.rb
RubyApp-0.2.5 spec/support/shared.rb
RubyApp-0.2.4 spec/support/shared.rb
RubyApp-0.2.3 spec/support/shared.rb
RubyApp-0.2.2 spec/support/shared.rb
RubyApp-0.2.1 spec/support/shared.rb
RubyApp-0.2.0 spec/support/shared.rb