Sha256: 29e88cb3303fadafe50a7dda918b4ee2fd8bc335677d6e389c04b9bdd13b5c1a
Contents?: true
Size: 1.05 KB
Versions: 16
Compression:
Stored size: 1.05 KB
Contents
require '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 end it "should have protected region" do only_protected_region.should have_region :protected do |content| content.should_not be_empty 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 end it "should have private region" do only_private_region.should have_region :private do |content| content.should_not be_empty end end end end
Version data entries
16 entries across 16 versions & 1 rubygems