Sha256: c07627b2541f2608a3f3f064b3d6cbd1b7ed33b57255d2d8d7e84bab808e0c7e
Contents?: true
Size: 711 Bytes
Versions: 16
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' describe 'include module matcher' do context "content without include Greeting" do no_include = %q{ class Hello < Greeting def hello end end} it "should not have include Greeting" do no_include.should_not include_module :greeting end end context "content with include Greeting" do with_module = %q{ class Hello include Greeting def hello end end} it "should have include Greeting" do with_module.should include_module :greeting do |content| content.should_not be_empty end end end end
Version data entries
16 entries across 16 versions & 1 rubygems