Sha256: c98fb9ad77a008cf267feb70da438883041906edaf672a1479e500575d806d30

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require "netzke-core"

describe "Any component" do

  class TestComponent < Netzke::Base

    endpoint :some_action do
      {}
    end
  end

  it "should be able to register endpoints" do
    TestComponent.endpoints.should include :some_action
  end

  it "should have deliver_component endpoint by default" do
    TestComponent.endpoints.should include :deliver_component
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
netzke-core-0.7.7 test/core_test_app/spec/component/component_spec.rb
netzke-core-0.7.6 test/core_test_app/spec/component/component_spec.rb
netzke-core-0.7.5 test/core_test_app/spec/component/component_spec.rb
netzke-core-0.7.4 test/core_test_app/spec/component/component_spec.rb
netzke-core-0.7.3 test/core_test_app/spec/component/component_spec.rb
netzke-core-0.7.2 test/core_test_app/spec/component/component_spec.rb
netzke-core-0.7.1 test/rails_app/spec/component/component_spec.rb
netzke-core-0.7.0 test/rails_app/spec/component/component_spec.rb