diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-01-27 12:13:35 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-01-27 12:13:35 +0000 |
commit | 46d9ea69a421a5065e282a102c3a1f2b2e2fcd2b (patch) | |
tree | 0a8987d48f31a32f4aa89a6b300a13a355b101a5 /spec/controllers/api_controller_spec.rb | |
parent | d10ab0836196d4e9a6e49529f838f1b1488950b7 (diff) | |
parent | 6dc2c6fde65b6f521e5b9e18b0cbeb33a7e156c5 (diff) |
Merge branch 'feature/1269-improve-quoting-recognition' into rails-3-develop
Diffstat (limited to 'spec/controllers/api_controller_spec.rb')
-rw-r--r-- | spec/controllers/api_controller_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/controllers/api_controller_spec.rb b/spec/controllers/api_controller_spec.rb index 8e9d17fbe..e9a0f0be4 100644 --- a/spec/controllers/api_controller_spec.rb +++ b/spec/controllers/api_controller_spec.rb @@ -1,18 +1,6 @@ # coding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') -def normalise_whitespace(s) - s = s.gsub(/\A\s+|\s+\Z/, "") - s = s.gsub(/\s+/, " ") - return s -end - -RSpec::Matchers.define :be_equal_modulo_whitespace_to do |expected| - match do |actual| - normalise_whitespace(actual) == normalise_whitespace(expected) - end -end - describe ApiController, "when using the API" do describe 'checking API keys' do |