From f39fad4d66a4b3db59a3e7e9548b02816efb4b3e Mon Sep 17 00:00:00 2001 From: Maurizio De Santis Date: Wed, 3 Sep 2014 02:19:12 +0200 Subject: [PATCH] Move spec files to conventional locations --- .../spec/{ => lib/rack/protection}/authenticity_token_spec.rb | 2 +- rack-protection/spec/{ => lib/rack/protection}/base_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/escaped_params_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/form_token_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/frame_options_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/http_origin_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/ip_spoofing_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/json_csrf_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/path_traversal_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/protection_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/remote_referrer_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/remote_token_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/session_hijacking_spec.rb | 2 +- .../spec/{ => lib/rack/protection}/xss_header_spec.rb | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) rename rack-protection/spec/{ => lib/rack/protection}/authenticity_token_spec.rb (96%) rename rack-protection/spec/{ => lib/rack/protection}/base_spec.rb (95%) rename rack-protection/spec/{ => lib/rack/protection}/escaped_params_spec.rb (95%) rename rack-protection/spec/{ => lib/rack/protection}/form_token_spec.rb (95%) rename rack-protection/spec/{ => lib/rack/protection}/frame_options_spec.rb (95%) rename rack-protection/spec/{ => lib/rack/protection}/http_origin_spec.rb (95%) rename rack-protection/spec/{ => lib/rack/protection}/ip_spoofing_spec.rb (95%) rename rack-protection/spec/{ => lib/rack/protection}/json_csrf_spec.rb (97%) rename rack-protection/spec/{ => lib/rack/protection}/path_traversal_spec.rb (96%) rename rack-protection/spec/{ => lib/rack/protection}/protection_spec.rb (98%) rename rack-protection/spec/{ => lib/rack/protection}/remote_referrer_spec.rb (94%) rename rack-protection/spec/{ => lib/rack/protection}/remote_token_spec.rb (96%) rename rack-protection/spec/{ => lib/rack/protection}/session_hijacking_spec.rb (97%) rename rack-protection/spec/{ => lib/rack/protection}/xss_header_spec.rb (97%) diff --git a/rack-protection/spec/authenticity_token_spec.rb b/rack-protection/spec/lib/rack/protection/authenticity_token_spec.rb similarity index 96% rename from rack-protection/spec/authenticity_token_spec.rb rename to rack-protection/spec/lib/rack/protection/authenticity_token_spec.rb index c63025c0..51c82453 100644 --- a/rack-protection/spec/authenticity_token_spec.rb +++ b/rack-protection/spec/lib/rack/protection/authenticity_token_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::AuthenticityToken do it_behaves_like "any rack application" diff --git a/rack-protection/spec/base_spec.rb b/rack-protection/spec/lib/rack/protection/base_spec.rb similarity index 95% rename from rack-protection/spec/base_spec.rb rename to rack-protection/spec/lib/rack/protection/base_spec.rb index e3305e17..71999122 100644 --- a/rack-protection/spec/base_spec.rb +++ b/rack-protection/spec/lib/rack/protection/base_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::Base do diff --git a/rack-protection/spec/escaped_params_spec.rb b/rack-protection/spec/lib/rack/protection/escaped_params_spec.rb similarity index 95% rename from rack-protection/spec/escaped_params_spec.rb rename to rack-protection/spec/lib/rack/protection/escaped_params_spec.rb index acc25d9d..5e435074 100644 --- a/rack-protection/spec/escaped_params_spec.rb +++ b/rack-protection/spec/lib/rack/protection/escaped_params_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::EscapedParams do it_behaves_like "any rack application" diff --git a/rack-protection/spec/form_token_spec.rb b/rack-protection/spec/lib/rack/protection/form_token_spec.rb similarity index 95% rename from rack-protection/spec/form_token_spec.rb rename to rack-protection/spec/lib/rack/protection/form_token_spec.rb index e0f765c1..e5bf68d6 100644 --- a/rack-protection/spec/form_token_spec.rb +++ b/rack-protection/spec/lib/rack/protection/form_token_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::FormToken do it_behaves_like "any rack application" diff --git a/rack-protection/spec/frame_options_spec.rb b/rack-protection/spec/lib/rack/protection/frame_options_spec.rb similarity index 95% rename from rack-protection/spec/frame_options_spec.rb rename to rack-protection/spec/lib/rack/protection/frame_options_spec.rb index 7a8b5d8b..e8ae1737 100644 --- a/rack-protection/spec/frame_options_spec.rb +++ b/rack-protection/spec/lib/rack/protection/frame_options_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::FrameOptions do it_behaves_like "any rack application" diff --git a/rack-protection/spec/http_origin_spec.rb b/rack-protection/spec/lib/rack/protection/http_origin_spec.rb similarity index 95% rename from rack-protection/spec/http_origin_spec.rb rename to rack-protection/spec/lib/rack/protection/http_origin_spec.rb index e9c4f1a4..13c6ab6a 100644 --- a/rack-protection/spec/http_origin_spec.rb +++ b/rack-protection/spec/lib/rack/protection/http_origin_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::HttpOrigin do it_behaves_like "any rack application" diff --git a/rack-protection/spec/ip_spoofing_spec.rb b/rack-protection/spec/lib/rack/protection/ip_spoofing_spec.rb similarity index 95% rename from rack-protection/spec/ip_spoofing_spec.rb rename to rack-protection/spec/lib/rack/protection/ip_spoofing_spec.rb index 5f6bf660..3cddf906 100644 --- a/rack-protection/spec/ip_spoofing_spec.rb +++ b/rack-protection/spec/lib/rack/protection/ip_spoofing_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::IPSpoofing do it_behaves_like "any rack application" diff --git a/rack-protection/spec/json_csrf_spec.rb b/rack-protection/spec/lib/rack/protection/json_csrf_spec.rb similarity index 97% rename from rack-protection/spec/json_csrf_spec.rb rename to rack-protection/spec/lib/rack/protection/json_csrf_spec.rb index 505b099f..a96bbebe 100644 --- a/rack-protection/spec/json_csrf_spec.rb +++ b/rack-protection/spec/lib/rack/protection/json_csrf_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::JsonCsrf do it_behaves_like "any rack application" diff --git a/rack-protection/spec/path_traversal_spec.rb b/rack-protection/spec/lib/rack/protection/path_traversal_spec.rb similarity index 96% rename from rack-protection/spec/path_traversal_spec.rb rename to rack-protection/spec/lib/rack/protection/path_traversal_spec.rb index 6b4772c4..2834aa9e 100644 --- a/rack-protection/spec/path_traversal_spec.rb +++ b/rack-protection/spec/lib/rack/protection/path_traversal_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::PathTraversal do it_behaves_like "any rack application" diff --git a/rack-protection/spec/protection_spec.rb b/rack-protection/spec/lib/rack/protection/protection_spec.rb similarity index 98% rename from rack-protection/spec/protection_spec.rb rename to rack-protection/spec/lib/rack/protection/protection_spec.rb index dea24e8e..adf16568 100755 --- a/rack-protection/spec/protection_spec.rb +++ b/rack-protection/spec/lib/rack/protection/protection_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection do it_behaves_like "any rack application" diff --git a/rack-protection/spec/remote_referrer_spec.rb b/rack-protection/spec/lib/rack/protection/remote_referrer_spec.rb similarity index 94% rename from rack-protection/spec/remote_referrer_spec.rb rename to rack-protection/spec/lib/rack/protection/remote_referrer_spec.rb index c840a5c7..e94c2028 100644 --- a/rack-protection/spec/remote_referrer_spec.rb +++ b/rack-protection/spec/lib/rack/protection/remote_referrer_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::RemoteReferrer do it_behaves_like "any rack application" diff --git a/rack-protection/spec/remote_token_spec.rb b/rack-protection/spec/lib/rack/protection/remote_token_spec.rb similarity index 96% rename from rack-protection/spec/remote_token_spec.rb rename to rack-protection/spec/lib/rack/protection/remote_token_spec.rb index 80c7501a..36b808e7 100644 --- a/rack-protection/spec/remote_token_spec.rb +++ b/rack-protection/spec/lib/rack/protection/remote_token_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::RemoteToken do it_behaves_like "any rack application" diff --git a/rack-protection/spec/session_hijacking_spec.rb b/rack-protection/spec/lib/rack/protection/session_hijacking_spec.rb similarity index 97% rename from rack-protection/spec/session_hijacking_spec.rb rename to rack-protection/spec/lib/rack/protection/session_hijacking_spec.rb index 041689c9..9ce6f6fb 100644 --- a/rack-protection/spec/session_hijacking_spec.rb +++ b/rack-protection/spec/lib/rack/protection/session_hijacking_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::SessionHijacking do it_behaves_like "any rack application" diff --git a/rack-protection/spec/xss_header_spec.rb b/rack-protection/spec/lib/rack/protection/xss_header_spec.rb similarity index 97% rename from rack-protection/spec/xss_header_spec.rb rename to rack-protection/spec/lib/rack/protection/xss_header_spec.rb index d2c7efc4..036be552 100644 --- a/rack-protection/spec/xss_header_spec.rb +++ b/rack-protection/spec/lib/rack/protection/xss_header_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../spec_helper.rb', __FILE__) +require 'spec_helper' describe Rack::Protection::XSSHeader do it_behaves_like "any rack application"