redirector 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,10 +11,17 @@ describe RedirectRule do
11
11
  it { should allow_mass_assignment_of(:destination) }
12
12
  it { should allow_mass_assignment_of(:active) }
13
13
  it { should allow_mass_assignment_of(:source_is_case_sensitive) }
14
+ it { should allow_mass_assignment_of(:request_environment_rules_attributes) }
15
+
16
+ it { should accept_nested_attributes_for(:request_environment_rules) }
14
17
 
15
18
  it { should validate_presence_of(:source) }
16
19
  it { should validate_presence_of(:destination) }
17
- it { should validate_presence_of(:active) }
20
+
21
+ it { should allow_value('0').for(:active) }
22
+ it { should allow_value('1').for(:active) }
23
+ it { should allow_value(true).for(:active) }
24
+ it { should allow_value(false).for(:active) }
18
25
 
19
26
  it { should allow_value('0').for(:source_is_regex) }
20
27
  it { should allow_value('1').for(:source_is_regex) }
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.3
4
+ version: 0.1.4
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-28 00:00:00.000000000 Z
12
+ date: 2012-09-08 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: -2755631284296833304
200
+ hash: -1337487945762421703
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: -2755631284296833304
209
+ hash: -1337487945762421703
210
210
  requirements: []
211
211
  rubyforge_project:
212
212
  rubygems_version: 1.8.21