require '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 module Learning class App include TextPlugin::App end end describe "A Shoes Framework" do it "should include Framework Plugins" do expect(Learning::App.new.gui).to eq("Peter") end end