dcrec1-rspec-vraptor 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/gempackagetask'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "rspec-vraptor"
8
- GEM_VERSION = "0.5.1"
8
+ GEM_VERSION = "0.5.3"
9
9
  SUMMARY = "RSpec for VRaptor Sexy URLs"
10
10
  AUTHOR = "Diego Carrion"
11
11
  EMAIL = "dc.rec1@gmail.com"
@@ -1,12 +1,13 @@
1
1
  class MockedHttpRequest
2
2
  include HttpServletRequest
3
- attr_accessor :dispatcher, :session, :request_uri, :parameter_map, :headers, :attributes, :locale
3
+ attr_accessor :dispatcher, :session, :request_uri, :parameter_map, :headers, :attributes, :locale, :context_path
4
4
 
5
5
  def initialize(session, uri, map, injection, headers, locale)
6
6
  @locale = locale
7
7
  @attributes = injection
8
8
  @headers = {'Host' => '72.14.205.100'}.merge! headers
9
- @session, @request_uri, @parameter_map = session, uri, map
9
+ @context_path = "/sso"
10
+ @session, @request_uri, @parameter_map = session, @context_path + uri, map
10
11
  end
11
12
 
12
13
  def get_request_dispatcher(x)
@@ -27,7 +28,7 @@ class MockedHttpRequest
27
28
  end
28
29
 
29
30
  def get_context_path
30
- ""
31
+ @context_path
31
32
  end
32
33
 
33
34
  def get_server_name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcrec1-rspec-vraptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Carrion