sixarm_ruby_action_controller_mock 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 15966f7f0624de0474cd5e6845dc510f89ca5b7c
4
+ data.tar.gz: f37480d58d72e5d94c786f530a9e8bedae5e4a5d
5
+ SHA512:
6
+ metadata.gz: 3817537d863a566b4036ef360d9b56cbb6a0bae430876af25294c01dd3add9ded2c565e6becb4e9c8912a30b3eac8515838e0ebe84574e4b37ae2dbbc576f33a
7
+ data.tar.gz: ad35cce58912016bc826a925aa5083145ff30809d34a9695b01a7794d4f31bac2155ae3094409a98a1d793ab7fa4b53b2aa4a24be6cc7003ff0f4614374be402
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
data/.gemtest ADDED
File without changes
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,28 @@
1
+ # Contributing
2
+
3
+ Thank you for contributing!
4
+
5
+ If you would like to contribute a donation, an easy way is to use PayPal to sixarm@sixarm.com.
6
+
7
+ If you would like to contribute help, the next section is for you.
8
+
9
+
10
+ ## Contributing to the source
11
+
12
+ We love pull requests for improvments to the source code and documentation.
13
+
14
+ There are three easy steps:
15
+
16
+ 1. Fork the repo.
17
+
18
+ * Before you do any work please run our existing tests to make sure the code runs cleanly.
19
+
20
+ 2. Work as you like.
21
+
22
+ * Please create tests. This helps us know that all your code runs cleanly.
23
+
24
+ 3. Push to your fork and submit a pull request.
25
+
26
+ * We'll take a look as soon as we can; this is typically within a business day.
27
+
28
+ Thank you again!
data/README.md ADDED
File without changes
data/Rakefile ADDED
@@ -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.0.7
@@ -0,0 +1,31 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin rdoc
3
+ Please see README
4
+ =end
5
+
6
+ module ActionController
7
+
8
+ class Base
9
+
10
+ RAILS_ROOT=''
11
+
12
+ attr_accessor :filter_chain
13
+
14
+ def initialize
15
+ @filter_chain=[]
16
+ end
17
+
18
+ def append_before_filter(*filters,&b)
19
+ @filter_chain += [*filters]
20
+ end
21
+
22
+ def append_after_filter(*filters,&b)
23
+ @filter_chain += [*filters]
24
+ end
25
+
26
+ alias_method :before_filter, :append_before_filter
27
+ alias_method :after_filter, :append_after_filter
28
+
29
+ end
30
+
31
+ end
@@ -0,0 +1,32 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "minitest/autorun"
3
+ Minitest::Test ||= MiniTest::Unit::TestCase
4
+ require "simplecov"
5
+ SimpleCov.start
6
+ require "sixarm_ruby_action_controller_mock"
7
+
8
+ class Testing < Test::Unit::TestCase
9
+
10
+ def setup
11
+ @mock=ActionController::Base.new
12
+ end
13
+
14
+ def test_rails_root_constant
15
+ assert_equal('',ActionController::Base::RAILS_ROOT,"mock rails root")
16
+ end
17
+
18
+ def test_filter_chain_empty
19
+ assert_equal([],@mock.filter_chain)
20
+ end
21
+
22
+ def test_before_filter
23
+ @mock.before_filter(:foo)
24
+ assert_equal([:foo],@mock.filter_chain)
25
+ end
26
+
27
+ def test_after_filter
28
+ @mock.after_filter(:foo)
29
+ assert_equal([:foo],@mock.filter_chain)
30
+ end
31
+
32
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sixarm_ruby_action_controller_mock
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.8
5
+ platform: ruby
6
+ authors:
7
+ - SixArm
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIGCTCCA/GgAwIBAgIJAK3igyLv2hNNMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
14
+ BAYTAlVTMRMwE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gQPOnvmVkLDGw==
46
+ -----END CERTIFICATE-----
47
+ date: 2015-07-07 00:00:00.000000000 Z
48
+ dependencies: []
49
+ description: This provides basics we need; you probably won't ever need to use this
50
+ gem.
51
+ email: sixarm@sixarm.com
52
+ executables: []
53
+ extensions: []
54
+ extra_rdoc_files: []
55
+ files:
56
+ - ".gemtest"
57
+ - CONTRIBUTING.md
58
+ - README.md
59
+ - Rakefile
60
+ - VERSION
61
+ - lib/sixarm_ruby_action_controller_mock.rb
62
+ - test/sixarm_ruby_action_controller_mock_test.rb
63
+ homepage: http://sixarm.com/
64
+ licenses:
65
+ - BSD
66
+ - GPL
67
+ - MIT
68
+ - PAL
69
+ - Various
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubyforge_project:
87
+ rubygems_version: 2.4.8
88
+ signing_key:
89
+ specification_version: 4
90
+ summary: SixArm.com » Ruby » ActionController mock object that we use to test our
91
+ various gems for Rails.
92
+ test_files:
93
+ - test/sixarm_ruby_action_controller_mock_test.rb
metadata.gz.sig ADDED
Binary file