Sha256: d62c84918576fb043675cd21dd0f53c8b3d254f89acd70d0bef0597d1c2637cc
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.5.0 | spec/generator_spec/matchers/content/inherit_from_spec.rb |
generator-spec-0.4.8 | spec/generator_spec/matchers/content/inherit_from_spec.rb |