Sha256: 073329f3b2d1ef845e39ac73744812fe7dbe3d90a87dfaa83a9b85078808350a

Contents?: true

Size: 346 Bytes

Versions: 71

Compression:

Stored size: 346 Bytes

Contents

module AppendFeaturesSpec
  class Klass; end

  def self.append_features(mod)
    ScratchPad.record mod
  end
end

describe "Module#append_features" do
  it "gets called when self is included in another module/class" do
    AppendFeaturesSpec::Klass.include AppendFeaturesSpec
    ScratchPad.recorded.should == AppendFeaturesSpec::Klass
  end
end

Version data entries

71 entries across 71 versions & 3 rubygems

Version Path
opal-0.10.6 spec/opal/core/module/append_features_spec.rb
opal-0.10.6.beta spec/opal/core/module/append_features_spec.rb
opal-0.10.5 spec/opal/core/module/append_features_spec.rb
opal-0.10.4 spec/opal/core/module/append_features_spec.rb
opal-0.11.0.rc1 spec/opal/core/module/append_features_spec.rb
opal-0.10.3 spec/opal/core/module/append_features_spec.rb
opal-0.10.2 spec/opal/core/module/append_features_spec.rb
opal-0.10.1 spec/opal/core/module/append_features_spec.rb
opal-0.10.0 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.rc2 spec/opal/core/module/append_features_spec.rb
opal-0.9.4 spec/opal/core/module/append_features_spec.rb
opal-0.9.3 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.rc1 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.beta5 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.beta4 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.beta3 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.beta2 spec/opal/core/module/append_features_spec.rb
opal-0.10.0.beta1 spec/opal/core/module/append_features_spec.rb
opal-0.9.2 spec/opal/core/module/append_features_spec.rb
opal-0.9.0 spec/opal/core/module/append_features_spec.rb