Sha256: 697ed2394673c7bd011bf386920b7c1c3e2fccb0b24095fcffa05420f6e175b3
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe 'region matcher' do context "content with only protected region" do only_protected_region = %q{ def hello end protected def goodbye end } it "should not have public region" do only_protected_region.should_not have_region :public do |content| puts content end end it "should have protected region" do only_protected_region.should have_region :protected do |content| puts content end end end context "content with only private region" do only_private_region = %q{ def hello end private def goodbye end } it "should not have public region" do only_private_region.should_not have_region :public do |content| puts content end end it "should have private region" do only_private_region.should have_region :private 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/have_region_spec.rb |