sixarm_ruby_application_controller_mock 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c11d1073613eb253974171f69792d9572d3d2ac3
4
+ data.tar.gz: 445e530532c69042e2b82ce8c732650dee567566
5
+ SHA512:
6
+ metadata.gz: 5707ea87c2e8f03121af7cdffc562ecd18af76c03c1bdcb0cf691b116103bbc5d1d3b4e4e84bf8d6b1004b2de4be39716aaba6a7d3f90fcd7c671d0f13ba1d65
7
+ data.tar.gz: 5aa7547381b77c8f917d835cc569062055b09dc12a841469bf2469c9047e4ba490428bf42701be870c0af0e92e69214cc40ba0c784d8671ff696e59df3d2130c
Binary file
Binary file
File without changes
@@ -0,0 +1,5 @@
1
+ # Changes
2
+
3
+ * 2015-07-07 1.2.7 Update gemspec to use file manifest
4
+ * 2012-03-14 1.2.6 Update docs, tests
5
+ * 2011-10-06 1.2.6 Updates for gem publishing
@@ -0,0 +1,28 @@
1
+ # License
2
+
3
+ You may choose any of these open source licenses:
4
+
5
+ * Apache License
6
+ * BSD License
7
+ * CreativeCommons License, Non-commercial Share Alike
8
+ * GNU Affero General Public License (AGPL)
9
+ * GNU General Public License Version (GPL)
10
+ * GNU Lesser General Public License (LGPL)
11
+ * MIT License
12
+ * Perl Artistic License
13
+ * Ruby License
14
+
15
+ The software is provided "as is", without warranty of any kind,
16
+ express or implied, including but not limited to the warranties of
17
+ merchantability, fitness for a particular purpose and noninfringement.
18
+
19
+ In no event shall the authors or copyright holders be liable for any
20
+ claim, damages or other liability, whether in an action of contract,
21
+ tort or otherwise, arising from, out of or in connection with the
22
+ software or the use or other dealings in the software.
23
+
24
+ This license is for the included software that is created by SixArm.
25
+ Some of the included software may have its own licenses, copyrights,
26
+ authors, etc. and these may take precedence over the SixArm license.
27
+
28
+ Copyright (c) Joel Parker Henderson
@@ -0,0 +1,60 @@
1
+ # Ruby » <br> ApplicationController mock object for testing Rails
2
+
3
+ * Doc: <http://sixarm.com/sixarm_ruby_application_controller_mock/doc>
4
+ * Gem: <http://rubygems.org/gems/sixarm_ruby_application_controller_mock>
5
+ * Repo: <http://github.com/sixarm/sixarm_ruby_application_controller_mock>
6
+ * Email: Joel Parker Henderson, <joel@sixarm.com>
7
+
8
+
9
+ ## Introduction
10
+
11
+ ApplicationController mock object for testing Rails.
12
+
13
+ This provides a flash hash, params hash, and session hash.
14
+
15
+ For docs go to <http://sixarm.com/sixarm_ruby_application_controller_mock/doc>
16
+
17
+ Want to help? We're happy to get pull requests.
18
+
19
+
20
+ ## Install quickstart
21
+
22
+ Install:
23
+
24
+ gem install sixarm_ruby_application_controller_mock
25
+
26
+ Bundler:
27
+
28
+ gem "sixarm_ruby_application_controller_mock", "~>1.2.6"
29
+
30
+ Require:
31
+
32
+ require "sixarm_ruby_application_controller_mock"
33
+
34
+
35
+ ## Install with security (optional)
36
+
37
+ To enable high security for all our gems:
38
+
39
+ wget http://sixarm.com/sixarm.pem
40
+ gem cert --add sixarm.pem
41
+ gem sources --add http://sixarm.com
42
+
43
+ To install with high security:
44
+
45
+ gem install sixarm_ruby_application_controller_mock --trust-policy HighSecurity
46
+
47
+
48
+ ## Example
49
+
50
+ require 'application_controller_mock'
51
+ class FoosController < ApplicationController
52
+ def whatever
53
+ session[:hello]=world
54
+ end
55
+ end
56
+
57
+
58
+ ## Example with intialize hash
59
+
60
+ foo = ApplicationConroller.new(:params=>{:a=>:b,:c=>:d)})
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "rake"
3
+ require "rake/testtask"
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'lib' << 'test'
7
+ t.pattern = 'test/*.rb'
8
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.2.6
@@ -0,0 +1,41 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "minitest/autorun"
3
+ require "simplecov"
4
+ SimpleCov.start
5
+ require "sixarm_ruby_application_controller_mock"
6
+
7
+ class Testing < Test::Unit::TestCase
8
+
9
+ def setup
10
+ @mock = ApplicationController.new(
11
+ :flash=>{'a'=>'b','c'=>'d'},
12
+ :params=>{'e'=>'f','g'=>'h'},
13
+ :session=>{'i'=>'j','k'=>'l'}
14
+ )
15
+ end
16
+
17
+ def test_instantiation
18
+ assert_not_nil(@mock,"mock")
19
+ end
20
+
21
+ def test_flash
22
+ assert_not_nil(@mock.flash,"mock.flash")
23
+ assert_equal({'a'=>'b','c'=>'d'},@mock.flash,"mock.flash")
24
+ end
25
+
26
+ def test_params
27
+ assert_not_nil(@mock.params,"mock.params")
28
+ assert_equal({'e'=>'f','g'=>'h'},@mock.params,"mock.params")
29
+ end
30
+
31
+ def test_session
32
+ assert_not_nil(@mock.session,"mock.session")
33
+ assert_equal({'i'=>'j','k'=>'l'},@mock.session,"mock.session")
34
+ end
35
+
36
+ def test_redirect_to
37
+ assert_equal(['foo'],@mock.redirect_to('foo'))
38
+ end
39
+
40
+ end
41
+
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sixarm_ruby_application_controller_mock
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.7
5
+ platform: ruby
6
+ authors:
7
+ - SixArm
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIGCTCCA/GgAwIBAgIJAK3igyLv2hNNMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
14
+ BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
15
+ c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTUw
16
+ MzE0MjA0MTE5WhcNMTcxMjA4MjA0MTE5WjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
17
+ CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEPMA0GA1UEChM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MTCnNpeGFybS5jb22CCQCt4oMi79oTTTAMBgNV
34
+ HRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4ICAQCYcCnvJpEhpo5mdVM8JDUuUZFt
35
+ qP2Kvj9J6tqugO+cuUF2S/ro4gdEQhl7Gv6+DCWHd0FQWJBSXMsZ9a6RhFGAcE5C
36
+ egK706Gh40yNeobd1aoUh+Pn17kYH2WSBRC+KsIvhZaAnra/1JPZItoge64GS+lM
37
+ PJJbVrtSati++s39wnss1QlMy9TXoesmR8vqsOU0XdCnK5hOun5RA8SYDWLffsfG
38
+ E3hvCg4C5viEkPY0YdC0KMSqs5kIA2nCUiqpkwIOa36rVEwiKiU7OCfE3u3baDpL
39
+ FlfMBznZKOdxDFAmNaxvXBe2XeTzrZPvJtnNLWL6K4LaBHhq3bBdh1Hge0iMkpQ7
40
+ RTIGlfhlIFkMV3wT0LTsNznUPsoo6e+IW/tDrk23mrNRY6QynTETb+QVIevuzD9m
41
+ Drcxp/zlVhud+a0ezdnyNvF520arJWvqA4GrOo8F+TT2vVrjscgYjiVGdSq+8wQv
42
+ Efa5jhe8QwG7R1rdpMMP5yBSAqWuFBczMveX5j4rp9Ifw5/XsZbgwcmdm26bjhzh
43
+ w2grAHIhvR9mztm6uXQlZhv1fu3P+RWHDSYhnZSCJSCdxPzQJ1mG5T5ahiL3HvCZ
44
+ 2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
45
+ n+ES/gQPOnvmVkLDGw==
46
+ -----END CERTIFICATE-----
47
+ date: 2015-07-08 00:00:00.000000000 Z
48
+ dependencies:
49
+ - !ruby/object:Gem::Dependency
50
+ name: sixarm_ruby_action_controller_mock
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 1.0.0
56
+ - - "<"
57
+ - !ruby/object:Gem::Version
58
+ version: '2'
59
+ type: :runtime
60
+ prerelease: false
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 1.0.0
66
+ - - "<"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ description: ApplicationContoller mock object for testing Ruby On Rails
70
+ email: sixarm@sixarm.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - ".gemtest"
76
+ - CHANGES.md
77
+ - LICENSE.md
78
+ - README.md
79
+ - Rakefile
80
+ - VERSION
81
+ - test/sixarm_ruby_application_controller_mock_test.rb
82
+ homepage: http://sixarm.com/
83
+ licenses:
84
+ - BSD
85
+ - GPL
86
+ - MIT
87
+ - PAL
88
+ - Various
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.4.8
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: SixArm.com » Ruby » ApplicationContoller mock
110
+ test_files:
111
+ - test/sixarm_ruby_application_controller_mock_test.rb
Binary file