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