Sha256: 4ae4dff811f989594f8a51ce462b26b935fd033c81f7078f87a577bd6f9d5afb
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe 'class_self matcher' do context "content without class << self" do not_class_self = %q{ def hello end} it "should not have class << self" do not_class_self.should_not have_class_self do |content| puts content end end end context "content with class << self" do class_self = %q{ class << self def hello end end # class self} it "should have class << self" do class_self.should have_class_self do |content| puts "content: #{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/class_self_spec.rb |