Sha256: db17b8713aec63813842c612f690c3e259c58f675dc7d4ff68e2276060a2c71c
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe 'subclass matcher' do context "content without subclass Greeting" do no_subclass = %q{ class Hello def hello end end} it "should not have subclass Greeting" do no_subclass.should_not have_subclass :hello, :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 have subclass Greeting" do with_subclass.should have_subclass :hello, :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/have_subclass_spec.rb |
generator-spec-0.4.8 | spec/generator_spec/matchers/content/have_subclass_spec.rb |