Sha256: a01c7326e320ca5cf6c036b9f3f90ec69f2ae60ac1a3b219bb7421f1f8e82356

Contents?: true

Size: 996 Bytes

Versions: 17

Compression:

Stored size: 996 Bytes

Contents

class Spec::ExampleGroup
  class << self
    def macro(name, &block)
      eigen do
        define_method(name, &block)
      end
    end

    def eigen(&block)
      eigen_class = (class << self; self; end)
      eigen_class.class_eval(&block)
      eigen_class
    end
  end
  
  include Rack::Test::Methods
  include BeHttp
  attr_reader :core_path, :spec_root_path, :public_path, :server, :connection
  before(:all) do
    dir = File.dirname(__FILE__)
    @core_path = File.expand_path("#{LIBRARY_ROOT_DIR}/spec/example_core")
    @spec_root_path = File.expand_path("#{LIBRARY_ROOT_DIR}/spec/example_specs")
    @public_path = File.expand_path("#{LIBRARY_ROOT_DIR}/spec/example_public")
    stub(Thread).start.yields
  end

  before(:each) do
    JsTestCore::Configuration.instance.spec_root_path = spec_root_path
    JsTestCore::Configuration.instance.public_path = public_path
    JsTestCore::Configuration.instance.core_path = core_path
  end

  def app
    Sinatra::Application
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
pivotal-screw-unit-0.5.0 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-0.5.1 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-0.5.2 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-0.5.3 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.10 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.11 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.12 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.3 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.4 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.5 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.6 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.7 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.8 vendor/js-test-core/spec/spec_helpers/example_group.rb
pivotal-screw-unit-server-0.5.9 vendor/js-test-core/spec/spec_helpers/example_group.rb
screw-unit-0.5.1 vendor/js-test-core/spec/spec_helpers/example_group.rb
screw-unit-0.5.2 vendor/js-test-core/spec/spec_helpers/example_group.rb
screw-unit-server-0.5.3 vendor/js-test-core/spec/spec_helpers/example_group.rb