monty-rspec-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/.gitignore +1 -0
  2. data/lib/monty-rspec-rails.rb +5 -4
  3. metadata +3 -3
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ monty-rspec-rails.gemspec
@@ -1,7 +1,7 @@
1
1
  module Monty
2
2
  module RspecRails
3
3
  def self.version
4
- '0.1.0'
4
+ '0.1.1'
5
5
  end
6
6
 
7
7
  def public_user
@@ -24,7 +24,8 @@ module Monty
24
24
 
25
25
  c = controller.controller_path
26
26
  actions.each do |method|
27
- path = "/#{c}/#{method}"
27
+ path = URI.parse(controller.url_for(:controller => c, :action => method)).path
28
+ next if path == "/"
28
29
  session_regexp.should match(path)
29
30
  end
30
31
  end
@@ -33,7 +34,7 @@ module Monty
33
34
  c = controller.controller_path
34
35
 
35
36
  controller_actions.each do |method|
36
- path = "/#{c}/#{method}"
37
+ path = URI.parse(controller.url_for(:controller => c, :action => method)).path
37
38
  session_regexp.should_not match(path)
38
39
  end
39
40
  end
@@ -42,7 +43,7 @@ module Monty
42
43
  c = controller.controller_path
43
44
 
44
45
  actions.each do |method|
45
- path = "/#{c}/#{method}"
46
+ path = URI.parse(controller.url_for(:controller => c, :action => method)).path
46
47
  session_regexp.should match(path)
47
48
  end
48
49
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - stonean
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-11 00:00:00 -04:00
17
+ date: 2010-05-13 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20