qwester 0.1.0 → 0.1.1
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.
|
@@ -20,11 +20,17 @@ module Qwester
|
|
|
20
20
|
assert_equal(Questionnaire.all, assigns('questionnaires'))
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
def test_presentation_not_assigned_when_not_used
|
|
24
|
+
test_index
|
|
25
|
+
assert_nil(assigns('presentation'))
|
|
26
|
+
end
|
|
27
|
+
|
|
23
28
|
def test_index_with_presentation
|
|
24
29
|
get :index, {:use_route => :qwester}, :presentations => [@presentation.name]
|
|
25
30
|
assert_response :success
|
|
26
31
|
assert_equal([@presentation.name], session[:presentations])
|
|
27
32
|
assert_equal(@presentation.questionnaires, assigns('questionnaires'))
|
|
33
|
+
assert_equal(@presentation, assigns('presentation'))
|
|
28
34
|
end
|
|
29
35
|
|
|
30
36
|
def test_index_with_presentation_and_history_of_other_presentation
|
|
@@ -49,7 +55,8 @@ module Qwester
|
|
|
49
55
|
get :index, {:use_route => :qwester}
|
|
50
56
|
assert_response :success
|
|
51
57
|
assert_equal(@presentation.questionnaires, assigns('questionnaires'))
|
|
52
|
-
assert_equal(nil, session[:presentations])
|
|
58
|
+
assert_equal(nil, session[:presentations])
|
|
59
|
+
assert_equal(@presentation, assigns('presentation'))
|
|
53
60
|
end
|
|
54
61
|
|
|
55
62
|
def test_show
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qwester
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-03-
|
|
12
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|