spec/tests/Demand_File_Addresses.rb in Checked-0.1.1 vs spec/tests/Demand_File_Addresses.rb in Checked-0.1.2

- old
+ new

@@ -1,4 +1,16 @@ +describe "Demand file_address!" do + + it 'must fail if string has control characters' do + lambda { + d = Checked::Demand.new(File.expand_path "~/\tbashee") + d.<< :file_address! + }.should.raise(Checked::Demand::Failed) + .message.should.match %r!has invalid characters: ! + end + +end # === describe Demand file_address! + describe "Demand not_dir!" do it 'must fail for an existing dir' do lambda {