Sha256: dd21fd0cb38d0c40c5fee176862e0f33a1049071500a04246fc46074ab4d2fec
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe 'inherit matcher' do context "content with class that inherits from Greeting" do no_subclass = %q{ class Hello def hello end end} it "should not inherit from Greeting" do no_subclass.should_not inherit_from :greeting do |content| puts content end end end context "content with subclass Greeting" do with_subclass = %q{ class Hello < Greeting def hello end end} it "should not inherit_from Greeting" do with_subclass.should inherit_from :greeting do |content| puts content end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.4.7 | spec/generator_spec/matchers/content/inherit_from_spec.rb |