redirector 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,6 +121,14 @@ describe RedirectRule do
121
121
  "QUERY_STRING" => 's=bogus&something=wrong'}).should be_nil
122
122
  end
123
123
  end
124
+
125
+ context 'with a regex rule that also matches an exact string match' do
126
+ let!(:regex_rule){ FactoryGirl.create(:redirect_rule_regex, :source => '[A-Za-z0-9]_thingy') }
127
+
128
+ it 'should return the exact match' do
129
+ RedirectRule.match_for('/catchy_thingy', {}).should == subject
130
+ end
131
+ end
124
132
  end
125
133
 
126
134
  describe '.destination_for' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-24 00:00:00.000000000 Z
12
+ date: 2012-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -197,7 +197,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  segments:
199
199
  - 0
200
- hash: -1807659678167474884
200
+ hash: -891526115620714472
201
201
  required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  none: false
203
203
  requirements:
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  segments:
208
208
  - 0
209
- hash: -1807659678167474884
209
+ hash: -891526115620714472
210
210
  requirements: []
211
211
  rubyforge_project:
212
212
  rubygems_version: 1.8.21