dcrec1-rspec-vraptor 0.9.6 → 0.9.6.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/README.textile CHANGED
@@ -22,6 +22,7 @@ describe UserController do
22
22
  get "/user/xpto", :request => {'param1' => 'value1'},
23
23
  :session => {'login' => 'dcrec1'},
24
24
  :inject => {'user' => User.new("Bruce")},
25
+ :cookies => {'session_id' => '534gh34hg34g3'},
25
26
  :headers => {'Host' => '20.85.17.10'}
26
27
  end
27
28
 
@@ -36,7 +37,11 @@ describe UserController do
36
37
  it "should save param1 in session" do
37
38
  @session.attributes['param1'].should eql('value')
38
39
  end
39
-
40
+
41
+ it do
42
+ @request.should be_viewless
43
+ end
44
+
40
45
  end
41
46
 
42
47
  end</code></pre>
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rake/gempackagetask'
8
8
  require 'spec/rake/spectask'
9
9
 
10
10
  GEM = "rspec-vraptor"
11
- GEM_VERSION = "0.9.6"
11
+ GEM_VERSION = "0.9.6.2"
12
12
  SUMMARY = "RSpec for VRaptor Sexy/Nice URLs"
13
13
  AUTHOR = "Diego Carrion"
14
14
  EMAIL = "dc.rec1@gmail.com"
@@ -0,0 +1,16 @@
1
+ class MockedFilterConfig
2
+ include FilterConfig
3
+
4
+ attr_accessor :context
5
+
6
+ def initialize(context)
7
+ @context = context
8
+ end
9
+
10
+ def get_servlet_context
11
+ @context
12
+ end
13
+
14
+ def get_init_parameter(x)
15
+ end
16
+ end
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.9.6
4
+ version: 0.9.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Carrion
@@ -29,7 +29,7 @@ files:
29
29
  - lib/spec/vraptor/mocked_http_response.rb
30
30
  - lib/spec/vraptor/mocked_request_dispatcher.rb
31
31
  - lib/spec/vraptor/mocked_http_session.rb
32
- - lib/spec/vraptor/mocked_config.rb
32
+ - lib/spec/vraptor/mocked_filter_config.rb
33
33
  - lib/spec/vraptor/mocked_http_request.rb
34
34
  - lib/environment.rb
35
35
  - README.textile