Sha256: 51f76bd16fb5a33afe527afae91ceebd2ffb7b34ec7d973119f1e0f32cd406dc

Contents?: true

Size: 480 Bytes

Versions: 47

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'
require 'sugar-high/includes'

module Simple
  module X
    def x
      'x'
    end
  end

  module Y
    def y
      'y'
    end
  end
    
  includes :x, :y    
end

class Xman
  include Simple
end

describe "SugarHigh" do
  describe "Includes ext" do
    describe '#includes' do    
      it "should include namespaces X and Y" do
        Xman.new.respond_to?(:x).should be_true
        Xman.new.respond_to?(:y).should be_true
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
sugar-high-0.5.3 spec/sugar-high/includes_spec.rb
sugar-high-0.5.1 spec/sugar-high/includes_spec.rb
sugar-high-0.5.0 spec/sugar-high/includes_spec.rb
sugar-high-0.4.9.5 spec/sugar-high/includes_spec.rb
sugar-high-0.4.9.3 spec/sugar-high/includes_spec.rb
sugar-high-0.4.9.2 spec/sugar-high/includes_spec.rb
sugar-high-0.4.9.1 spec/sugar-high/includes_spec.rb
sugar-high-0.4.9 spec/sugar-high/includes_spec.rb
sugar-high-0.4.8 spec/sugar-high/includes_spec.rb
sugar-high-0.4.7 spec/sugar-high/includes_spec.rb
sugar-high-0.4.6.4 spec/sugar-high/includes_spec.rb
sugar-high-0.4.6.3 spec/sugar-high/includes_spec.rb
sugar-high-0.4.6.2 spec/sugar-high/includes_spec.rb
sugar-high-0.4.6.1 spec/sugar-high/includes_spec.rb
sugar-high-0.4.6 spec/sugar-high/includes_spec.rb
sugar-high-0.4.5.2 spec/sugar-high/includes_spec.rb
sugar-high-0.4.5 spec/sugar-high/includes_spec.rb
sugar-high-0.4.4.2 spec/sugar-high/includes_spec.rb
sugar-high-0.4.4.1 spec/sugar-high/includes_spec.rb
sugar-high-0.4.4 spec/sugar-high/includes_spec.rb