selleo-controller_tests 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/selleo-controller_tests/support/shared_examples/controllers/action_redirecting_to.rb +3 -0
- data/lib/selleo-controller_tests/support/shared_examples/controllers/action_redirecting_to_back.rb +5 -0
- data/lib/selleo-controller_tests/support/shared_examples/controllers/action_rendering_view.rb +12 -0
- data/lib/selleo-controller_tests/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDg0NDJhNzJhYzAzOWI5Y2Q2NTVlODRlMDNhYjI4Yzc2ZDAyMjI3Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mjg5ZGViMjNiMGQ5MTEyZmM3YzFjNzQ5NmQ4NTRlNjkwNzcxMDhlMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTYyMGRiYzdjMDQwM2UwODJhNzgzZTMyMWNiZjkzY2NiOTliM2I2NmE4ZmUy
|
10
|
+
NDdkMmI5NThhNWU3MDBlYmQ5ODYwNGEwNTJjY2U2M2Q3MmIwYjg4MjI5YTc0
|
11
|
+
NGRiNGFkZmJhMDBhZmU1ZTM4ODI0MDQ3NWRiMzlkOTk0ZGJjZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTNkZDMxMGUxN2E5ZDdkZTdlMWVlMDA0MGMwY2NhN2U5YjYxYjExZWEwNTBj
|
14
|
+
YzY1ZDhlYzdiYWJiNmExNzQxYzE4OTM0OTcwNjBkMDBjZjI3YTY5YjVhMjQz
|
15
|
+
MmNlYmU1ZDFmMzdhOTgxYTA3OTcwYTY0MzUyMGM4M2M0ZDg5OTU=
|
@@ -0,0 +1,12 @@
|
|
1
|
+
shared_examples_for 'an action rendering view' do
|
2
|
+
let(:view) do
|
3
|
+
parent = self.class.parent
|
4
|
+
if parent.description.first == '#'
|
5
|
+
parent.description[/\w+/]
|
6
|
+
else
|
7
|
+
parent.parent.description[/\w+/]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
it { expect(call_request).to render_template(view) }
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selleo-controller_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stevo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Shared examples for controller tests
|
14
14
|
email:
|
@@ -20,6 +20,9 @@ files:
|
|
20
20
|
- lib/selleo-controller_tests/support/controller_macros.rb
|
21
21
|
- lib/selleo-controller_tests/support/shared_examples/controllers/action_creating_object.rb
|
22
22
|
- lib/selleo-controller_tests/support/shared_examples/controllers/action_destroying_object.rb
|
23
|
+
- lib/selleo-controller_tests/support/shared_examples/controllers/action_redirecting_to.rb
|
24
|
+
- lib/selleo-controller_tests/support/shared_examples/controllers/action_redirecting_to_back.rb
|
25
|
+
- lib/selleo-controller_tests/support/shared_examples/controllers/action_rendering_view.rb
|
23
26
|
- lib/selleo-controller_tests/support/shared_examples/controllers/action_updating_object.rb
|
24
27
|
- lib/selleo-controller_tests/support/shared_examples/controllers/handled_with_service_object.rb
|
25
28
|
- lib/selleo-controller_tests/support/xhr_persistence.rb
|