Sha256: a895901e04f56af0e5f62d962f732b50f4d5ed1b788a71d1fa036228b583e45d

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

require "shoes/spec_helper"

module Learning
  class App
    attr_accessor :gui

    def initialize
      @gui = gui_init
    end
  end
end

module TextPlugin
  module App
    def gui_init
      "Peter"
    end
  end
end

  class Learning::App
    include TextPlugin::App
  end

describe "A Shoes Framework" do

  it "should include Framework Plugins" do
    expect(Learning::App.new.gui).to eq("Peter")
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
shoes-core-4.0.0.pre4 spec/shoes/framework_learning_spec.rb
shoes-core-4.0.0.pre3 spec/shoes/framework_learning_spec.rb
shoes-swt-4.0.0.pre2 spec/shoes/framework_learning_spec.rb
shoes-dsl-4.0.0.pre2 spec/shoes/framework_learning_spec.rb