Sha256: 083de3ab5bfe8345e0de4da988f321a1c6d6d0f26c04798a9c9655dee03ba23f
Contents?: true
Size: 673 Bytes
Versions: 16
Compression:
Stored size: 673 Bytes
Contents
require '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 end end context "content with subclass Greeting" do with_subclass = %q{ class Hello < Greeting def hello end end} it "should inherit_from Greeting" do with_subclass.should inherit_from :greeting do |content| content.should_not be_empty end end end end
Version data entries
16 entries across 16 versions & 1 rubygems