aadhar 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class HighScoresControllerTest < ActionController::TestCase
4
+ setup do
5
+ @high_score = high_scores(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:high_scores)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create high_score" do
20
+ assert_difference('HighScore.count') do
21
+ post :create, high_score: { game: @high_score.game, score: @high_score.score }
22
+ end
23
+
24
+ assert_redirected_to high_score_path(assigns(:high_score))
25
+ end
26
+
27
+ test "should show high_score" do
28
+ get :show, id: @high_score
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, id: @high_score
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update high_score" do
38
+ patch :update, id: @high_score, high_score: { game: @high_score.game, score: @high_score.score }
39
+ assert_redirected_to high_score_path(assigns(:high_score))
40
+ end
41
+
42
+ test "should destroy high_score" do
43
+ assert_difference('HighScore.count', -1) do
44
+ delete :destroy, id: @high_score
45
+ end
46
+
47
+ assert_redirected_to high_scores_path
48
+ end
49
+ end
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ game: MyString
5
+ score: 1
6
+
7
+ two:
8
+ game: MyString
9
+ score: 1
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class HighScoreTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aadhar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krunal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-31 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -96,6 +96,7 @@ files:
96
96
  - config/routes.rb
97
97
  - db/migrate/20150130043153_create_users.rb
98
98
  - lib/aadhar.rb
99
+ - lib/aadhar/authenticate.rb
99
100
  - lib/aadhar/engine.rb
100
101
  - lib/aadhar/version.rb
101
102
  - lib/tasks/aadhar_tasks.rake
@@ -103,9 +104,20 @@ files:
103
104
  - test/dummy/README.rdoc
104
105
  - test/dummy/Rakefile
105
106
  - test/dummy/app/assets/javascripts/application.js
107
+ - test/dummy/app/assets/javascripts/high_scores.js
106
108
  - test/dummy/app/assets/stylesheets/application.css
109
+ - test/dummy/app/assets/stylesheets/high_scores.css
110
+ - test/dummy/app/assets/stylesheets/scaffold.css
107
111
  - test/dummy/app/controllers/application_controller.rb
112
+ - test/dummy/app/controllers/high_scores_controller.rb
108
113
  - test/dummy/app/helpers/application_helper.rb
114
+ - test/dummy/app/helpers/high_scores_helper.rb
115
+ - test/dummy/app/models/high_score.rb
116
+ - test/dummy/app/views/high_scores/_form.html.erb
117
+ - test/dummy/app/views/high_scores/edit.html.erb
118
+ - test/dummy/app/views/high_scores/index.html.erb
119
+ - test/dummy/app/views/high_scores/new.html.erb
120
+ - test/dummy/app/views/high_scores/show.html.erb
109
121
  - test/dummy/app/views/layouts/application.html.erb
110
122
  - test/dummy/bin/bundle
111
123
  - test/dummy/bin/rails
@@ -130,12 +142,16 @@ files:
130
142
  - test/dummy/config/locales/en.yml
131
143
  - test/dummy/config/routes.rb
132
144
  - test/dummy/config/secrets.yml
145
+ - test/dummy/db/migrate/20150206194145_create_high_scores.rb
133
146
  - test/dummy/db/schema.rb
134
147
  - test/dummy/log/development.log
135
148
  - test/dummy/public/404.html
136
149
  - test/dummy/public/422.html
137
150
  - test/dummy/public/500.html
138
151
  - test/dummy/public/favicon.ico
152
+ - test/dummy/test/controllers/high_scores_controller_test.rb
153
+ - test/dummy/test/fixtures/high_scores.yml
154
+ - test/dummy/test/models/high_score_test.rb
139
155
  - test/integration/navigation_test.rb
140
156
  - test/test_helper.rb
141
157
  homepage: https://rubygems.org/gems/aadhar
@@ -164,6 +180,7 @@ specification_version: 4
164
180
  summary: Token based authentication
165
181
  test_files:
166
182
  - test/dummy/db/schema.rb
183
+ - test/dummy/db/migrate/20150206194145_create_high_scores.rb
167
184
  - test/dummy/config/locales/en.yml
168
185
  - test/dummy/config/secrets.yml
169
186
  - test/dummy/config/database.yml
@@ -187,11 +204,25 @@ test_files:
187
204
  - test/dummy/public/404.html
188
205
  - test/dummy/public/500.html
189
206
  - test/dummy/config.ru
207
+ - test/dummy/app/controllers/high_scores_controller.rb
190
208
  - test/dummy/app/controllers/application_controller.rb
209
+ - test/dummy/app/models/high_score.rb
210
+ - test/dummy/app/helpers/high_scores_helper.rb
191
211
  - test/dummy/app/helpers/application_helper.rb
212
+ - test/dummy/app/assets/stylesheets/high_scores.css
192
213
  - test/dummy/app/assets/stylesheets/application.css
214
+ - test/dummy/app/assets/stylesheets/scaffold.css
193
215
  - test/dummy/app/assets/javascripts/application.js
216
+ - test/dummy/app/assets/javascripts/high_scores.js
194
217
  - test/dummy/app/views/layouts/application.html.erb
218
+ - test/dummy/app/views/high_scores/index.html.erb
219
+ - test/dummy/app/views/high_scores/new.html.erb
220
+ - test/dummy/app/views/high_scores/edit.html.erb
221
+ - test/dummy/app/views/high_scores/_form.html.erb
222
+ - test/dummy/app/views/high_scores/show.html.erb
223
+ - test/dummy/test/controllers/high_scores_controller_test.rb
224
+ - test/dummy/test/models/high_score_test.rb
225
+ - test/dummy/test/fixtures/high_scores.yml
195
226
  - test/dummy/log/development.log
196
227
  - test/dummy/bin/setup
197
228
  - test/dummy/bin/rake