Skip to content
Browse files

Initial minimal statement/asset_spec.

  • Loading branch information...
1 parent 5294a21 commit 42f8a3945c09070ffb6eba084d77f8fdd0114f3f @clonezone clonezone committed Jun 29, 2012
Showing with 31 additions and 0 deletions.
  1. +31 −0 spec/statement/asset_spec.rb
View
31 spec/statement/asset_spec.rb
@@ -0,0 +1,31 @@
+# coding: utf-8
+
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+
+require 'fig/statement/archive'
+require 'fig/statement/resource'
+
+[Fig::Statement::Archive, Fig::Statement::Resource].each do
+ |statement_type|
+
+ describe statement_type do
+ describe '.validate_and_process_escapes_in_url()' do
+ it %q<does not modify «foo * bar» and says that it should be globbed> do
+ original_url = %q<foo * bar>
+ url = original_url.clone
+ block_message = nil
+
+ should_be_globbed =
+ statement_type.validate_and_process_escapes_in_url(url) do
+ |message| block_message = message
+ end
+
+ url.should == original_url
+ should_be_globbed.should be_true
+ block_message.should be_nil
+ end
+ end
+ end
+end
+
+# vim: set fileencoding=utf8 :

0 comments on commit 42f8a39

Please sign in to comment.
Something went wrong with that request. Please try again.