module Foo module Helpers def bar 'unk' end end end ããããHelpersã helpers do include Foo::Helpers end ãããã風ã«ä½¿ã£ã¦ãå ´åã RSpec.configure do |config| config.include Foo::Helpers end describe Foo::Helpers do context 'bar' do it 'should return unk' do bar.should eql('unk') end end end Spec::Runner.configã§includeããã¨ãã¹ãåºæ¥ãã Lokkaã¯Sinatraãã¼ã¹ãªã®ã§åãããã«Helpersã®ãã¹ãæ¸ãããã§ãRspecããããããªãconfig.includeã®ã¨ãã¨ããã¨Test::Unit,
{{#tags}}- {{label}}
{{/tags}}