Skip to content
This repository
Browse code

テスト実行毎設定.

  • Loading branch information...
commit b778b969a62c79c29fbcbcc569ba6b8b9329dffa 1 parent d370823
Tomonori Kusanagi bananagi authored
6 spec/oauth/helpers/basic_helper_spec.rb
@@ -11,6 +11,7 @@
11 11 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
12 12 consumer_key 'sample_consumer_key'
13 13 consumer_secret 'sample_consumer_secret'
  14 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
14 15 end
15 16 oauth_helper = OpensocialWap::OAuth::Helpers::BasicHelper.new(request)
16 17
@@ -29,6 +30,7 @@
29 30 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
30 31 consumer_key 'sample_consumer_key'
31 32 consumer_secret 'sample_consumer_secret'
  33 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
32 34 end
33 35 oauth_helper = OpensocialWap::OAuth::Helpers::BasicHelper.new(request)
34 36
@@ -46,6 +48,7 @@
46 48 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
47 49 consumer_key 'sample_consumer_key'
48 50 consumer_secret 'foobar'
  51 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
49 52 end
50 53 oauth_helper = OpensocialWap::OAuth::Helpers::BasicHelper.new(request)
51 54 result = oauth_helper.verify
@@ -65,6 +68,7 @@
65 68 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
66 69 consumer_key 'sample_consumer_key'
67 70 consumer_secret 'sample_consumer_secret'
  71 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
68 72 end
69 73 oauth_helper = OpensocialWap::OAuth::Helpers::BasicHelper.new(request)
70 74 result = oauth_helper.verify
@@ -84,6 +88,7 @@
84 88 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
85 89 consumer_key 'sample_consumer_key'
86 90 consumer_secret 'sample_consumer_secret'
  91 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
87 92 end
88 93 oauth_helper = OpensocialWap::OAuth::Helpers::BasicHelper.new(request)
89 94 result = oauth_helper.verify
@@ -102,6 +107,7 @@
102 107 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
103 108 consumer_key 'sample_consumer_key'
104 109 consumer_secret 'foobar'
  110 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
105 111 end
106 112 oauth_helper = OpensocialWap::OAuth::Helpers::BasicHelper.new(request)
107 113 result = oauth_helper.verify
7 spec/rack/opensocial_oauth_spec.rb
@@ -10,6 +10,7 @@
10 10 helper_class = OpensocialWap::OAuth::Helpers::BasicHelper.configure do
11 11 consumer_key 'sample_consumer_key'
12 12 consumer_secret 'sample_consumer_secret'
  13 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
13 14 end
14 15 opts = {:helper_class => helper_class}
15 16 rack = OpensocialWap::Rack::OpensocialOauth.new(nil, opts)
@@ -29,6 +30,7 @@
29 30 helper_class = OpensocialWap::OAuth::Helpers::BasicHelper.configure do
30 31 consumer_key 'sample_consumer_key'
31 32 consumer_secret 'sample_consumer_secret'
  33 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
32 34 end
33 35 opts = {:helper_class => helper_class}
34 36 rack = OpensocialWap::Rack::OpensocialOauth.new(nil, opts)
@@ -47,6 +49,7 @@
47 49 helper_class = OpensocialWap::OAuth::Helpers::BasicHelper.configure do
48 50 consumer_key 'sample_consumer_key'
49 51 consumer_secret 'foobar'
  52 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
50 53 end
51 54 opts = {:helper_class => helper_class}
52 55 rack = OpensocialWap::Rack::OpensocialOauth.new(nil, opts)
@@ -68,6 +71,7 @@
68 71 helper_class = OpensocialWap::OAuth::Helpers::BasicHelper.configure do
69 72 consumer_key 'sample_consumer_key'
70 73 consumer_secret 'sample_consumer_secret'
  74 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
71 75 end
72 76 opts = {:helper_class => helper_class}
73 77 rack = OpensocialWap::Rack::OpensocialOauth.new(nil, opts)
@@ -89,9 +93,11 @@
89 93 helper_class = OpensocialWap::OAuth::Helpers::BasicHelper.configure do
90 94 consumer_key 'sample_consumer_key'
91 95 consumer_secret 'sample_consumer_secret'
  96 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
92 97 end
93 98 opts = {:helper_class => helper_class}
94 99 rack = OpensocialWap::Rack::OpensocialOauth.new(nil, opts)
  100 +
95 101 result = rack.send :verify, request.env
96 102
97 103 result.should be_true
@@ -109,6 +115,7 @@
109 115 helper_class = OpensocialWap::OAuth::Helpers::BasicHelper.configure do
110 116 consumer_key 'sample_consumer_key'
111 117 consumer_secret 'foobar'
  118 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
112 119 end
113 120 opts = {:helper_class => helper_class}
114 121 rack = OpensocialWap::Rack::OpensocialOauth.new(nil, opts)
1  spec/rails3/app_root/spec/.#reset_opensocial_wap_config.rb
1  spec/rails3/app_root/spec/reset_opensocial_wap_config.rb
... ... @@ -1,6 +1,7 @@
1 1 def reset_opensocial_wap_config(config)
2 2 config.opensocial_wap.oauth = OpensocialWap::Config::OAuth.configure do
3 3 OpensocialWap::OAuth::Helpers::BasicHelper.configure do
  4 + proxy_class OpensocialWap::OAuth::RequestProxy::OAuthRackRequestProxy
4 5 consumer_key 'abcdef'
5 6 consumer_secret 'abcdefg12345'
6 7 api_endpoint 'http://api.example.com/'

0 comments on commit b778b96

Please sign in to comment.
Something went wrong with that request. Please try again.