easy_tokens 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/easy_tokens/application.css +157 -0
  3. data/app/controllers/easy_tokens/tokens_controller.rb +11 -7
  4. data/app/views/easy_tokens/tokens/_form.html.erb +6 -18
  5. data/app/views/easy_tokens/tokens/edit.html.erb +1 -4
  6. data/app/views/easy_tokens/tokens/index.html.erb +16 -8
  7. data/app/views/easy_tokens/tokens/new.html.erb +1 -3
  8. data/app/views/layouts/easy_tokens/application.html.erb +3 -3
  9. data/config/routes.rb +3 -1
  10. data/lib/easy_tokens/version.rb +1 -1
  11. data/test/controllers/easy_tokens/tokens_controller_test.rb +8 -7
  12. data/test/dummy/app/controllers/application_controller.rb +4 -0
  13. data/test/dummy/config/environments/test.rb +2 -1
  14. data/test/dummy/db/test.sqlite3 +0 -0
  15. data/test/dummy/log/test.log +1888 -1787
  16. data/test/dummy/test/fixtures/easy_tokens/tokens.yml +9 -0
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0Kjb8LNHtOKlJ439bxaQWTqpsrPEBpsBfiGjZ9Ci28w.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/4WpB_0zYU0W3dM1-AU_ewwhdL7iq8-HXjYX_RNc4mYY.cache +1 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/8hzGsOQc99BgHQtcfZgSWGEwKYnh52rpf8thtBMHnkU.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/F10hTR12tMtJCh3zPyfquuMDK49ZBNIo1zwpQgpDRjQ.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Hg8MFL0QcTNvYE2SiPf7VJ2LkKTujClgCPimBzPcE2g.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/L45J0VKxz588ckASiy0QQBgXdlMP-Itbv-i1JQNGru8.cache +1 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/RxO6_GtKHqcTBJ5XshUilvR4yHkNzvXX6ljH__4Xl1Q.cache +3 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/hUWnSQJT_w3QcvoU-AuC-RhldB8tVlLhzDVrAEAnnnk.cache +1 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/spM0Vq4M1grDexCfS0d30LrHTzJ-xG9jv4D5UzEKa9o.cache +2 -0
  26. data/test/integration/navigation_test.rb +17 -5
  27. data/test/models/easy_tokens/token_test.rb +0 -3
  28. data/test/test_helper.rb +0 -1
  29. metadata +24 -11
  30. data/README.rdoc +0 -3
  31. data/app/views/easy_tokens/tokens/show.html.erb +0 -24
  32. data/test/dummy/db/development.sqlite3 +0 -0
  33. data/test/dummy/log/development.log +0 -382
  34. data/test/helpers/easy_tokens/tokens_helper_test.rb +0 -6
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ value: MyString
5
+ description: MyString
6
+
7
+ two:
8
+ value: MyString
9
+ description: MyString
@@ -0,0 +1 @@
1
+ "%c��j��͸�y1���6/�ݮ����P� ��
@@ -0,0 +1 @@
1
+ I"�/Users/adamo/code/easy_tokens/app/assets/stylesheets/easy_tokens/application.css?type=text/css&id=ee5cae707f718055a0ca64e470703cf4f5b952baf0519996020cc621b2f348a5:ET
@@ -0,0 +1 @@
1
+ "%c��j��͸�y1���6/�ݮ����P� ��
@@ -0,0 +1 @@
1
+ "%c��j��͸�y1���6/�ݮ����P� ��
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"cfile-digest:///Users/adamo/code/easy_tokens/app/assets/stylesheets/easy_tokens/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TT
@@ -0,0 +1 @@
1
+ I"�/Users/adamo/code/easy_tokens/app/assets/stylesheets/easy_tokens/application.css?type=text/css&pipeline=self&id=cded48b48796078ce4378a8ec7e7c9ee9ca3da929eb3a93d6df32ce38f68d6b7:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"cfile-digest:///Users/adamo/code/easy_tokens/app/assets/stylesheets/easy_tokens/application.css;TT
@@ -1,10 +1,22 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
4
+ test "index render correct template and layout" do
5
+ get '/easy_tokens'
6
+ assert_template :index
7
+ assert_template layout: "layouts/easy_tokens/application"
8
+ end
5
9
 
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
+ test "edit render correct template and layout" do
11
+ token = easy_tokens_tokens(:one)
12
+ get "/easy_tokens/tokens/#{token.id}/edit"
13
+ assert_template :edit
14
+ assert_template layout: "layouts/easy_tokens/application", partial: "_form"
15
+ end
10
16
 
17
+ test "new render correct template and layout" do
18
+ get "/easy_tokens/tokens/new"
19
+ assert_template :new
20
+ assert_template layout: "layouts/easy_tokens/application", partial: "_form"
21
+ end
22
+ end
@@ -6,8 +6,5 @@ module EasyTokens
6
6
  token = Token.new
7
7
  assert_not token.value.nil?
8
8
  end
9
- # test "the truth" do
10
- # assert true
11
- # end
12
9
  end
13
10
  end
@@ -16,7 +16,6 @@ end
16
16
 
17
17
  class ActiveSupport::TestCase
18
18
  fixtures :all
19
-
20
19
  end
21
20
 
22
21
  module EasyTokens
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_tokens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Nowak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-29 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -62,8 +62,8 @@ extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
64
  - MIT-LICENSE
65
- - README.rdoc
66
65
  - Rakefile
66
+ - app/assets/stylesheets/easy_tokens/application.css
67
67
  - app/controllers/easy_tokens/application_controller.rb
68
68
  - app/controllers/easy_tokens/tokens_controller.rb
69
69
  - app/models/easy_tokens/token.rb
@@ -71,7 +71,6 @@ files:
71
71
  - app/views/easy_tokens/tokens/edit.html.erb
72
72
  - app/views/easy_tokens/tokens/index.html.erb
73
73
  - app/views/easy_tokens/tokens/new.html.erb
74
- - app/views/easy_tokens/tokens/show.html.erb
75
74
  - app/views/layouts/easy_tokens/application.html.erb
76
75
  - config/routes.rb
77
76
  - db/migrate/20141103194654_create_easy_tokens_tokens.rb
@@ -110,18 +109,25 @@ files:
110
109
  - test/dummy/config/locales/en.yml
111
110
  - test/dummy/config/routes.rb
112
111
  - test/dummy/config/secrets.yml
113
- - test/dummy/db/development.sqlite3
114
112
  - test/dummy/db/schema.rb
115
113
  - test/dummy/db/test.sqlite3
116
- - test/dummy/log/development.log
117
114
  - test/dummy/log/test.log
118
115
  - test/dummy/public/404.html
119
116
  - test/dummy/public/422.html
120
117
  - test/dummy/public/500.html
121
118
  - test/dummy/public/favicon.ico
119
+ - test/dummy/test/fixtures/easy_tokens/tokens.yml
120
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0Kjb8LNHtOKlJ439bxaQWTqpsrPEBpsBfiGjZ9Ci28w.cache
121
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/4WpB_0zYU0W3dM1-AU_ewwhdL7iq8-HXjYX_RNc4mYY.cache
122
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/8hzGsOQc99BgHQtcfZgSWGEwKYnh52rpf8thtBMHnkU.cache
123
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/F10hTR12tMtJCh3zPyfquuMDK49ZBNIo1zwpQgpDRjQ.cache
124
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Hg8MFL0QcTNvYE2SiPf7VJ2LkKTujClgCPimBzPcE2g.cache
125
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/L45J0VKxz588ckASiy0QQBgXdlMP-Itbv-i1JQNGru8.cache
126
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/RxO6_GtKHqcTBJ5XshUilvR4yHkNzvXX6ljH__4Xl1Q.cache
127
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/hUWnSQJT_w3QcvoU-AuC-RhldB8tVlLhzDVrAEAnnnk.cache
128
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/spM0Vq4M1grDexCfS0d30LrHTzJ-xG9jv4D5UzEKa9o.cache
122
129
  - test/easy_tokens_test.rb
123
130
  - test/fixtures/easy_tokens/tokens.yml
124
- - test/helpers/easy_tokens/tokens_helper_test.rb
125
131
  - test/integration/navigation_test.rb
126
132
  - test/models/easy_tokens/token_test.rb
127
133
  - test/test_helper.rb
@@ -145,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
151
  version: '0'
146
152
  requirements: []
147
153
  rubyforge_project:
148
- rubygems_version: 2.2.2
154
+ rubygems_version: 2.4.8
149
155
  signing_key:
150
156
  specification_version: 4
151
157
  summary: App global tokens management and verification
@@ -178,10 +184,8 @@ test_files:
178
184
  - test/dummy/config/routes.rb
179
185
  - test/dummy/config/secrets.yml
180
186
  - test/dummy/config.ru
181
- - test/dummy/db/development.sqlite3
182
187
  - test/dummy/db/schema.rb
183
188
  - test/dummy/db/test.sqlite3
184
- - test/dummy/log/development.log
185
189
  - test/dummy/log/test.log
186
190
  - test/dummy/public/404.html
187
191
  - test/dummy/public/422.html
@@ -189,9 +193,18 @@ test_files:
189
193
  - test/dummy/public/favicon.ico
190
194
  - test/dummy/Rakefile
191
195
  - test/dummy/README.rdoc
196
+ - test/dummy/test/fixtures/easy_tokens/tokens.yml
197
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/0Kjb8LNHtOKlJ439bxaQWTqpsrPEBpsBfiGjZ9Ci28w.cache
198
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/4WpB_0zYU0W3dM1-AU_ewwhdL7iq8-HXjYX_RNc4mYY.cache
199
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/8hzGsOQc99BgHQtcfZgSWGEwKYnh52rpf8thtBMHnkU.cache
200
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/F10hTR12tMtJCh3zPyfquuMDK49ZBNIo1zwpQgpDRjQ.cache
201
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/Hg8MFL0QcTNvYE2SiPf7VJ2LkKTujClgCPimBzPcE2g.cache
202
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/hUWnSQJT_w3QcvoU-AuC-RhldB8tVlLhzDVrAEAnnnk.cache
203
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/L45J0VKxz588ckASiy0QQBgXdlMP-Itbv-i1JQNGru8.cache
204
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/RxO6_GtKHqcTBJ5XshUilvR4yHkNzvXX6ljH__4Xl1Q.cache
205
+ - test/dummy/tmp/cache/assets/test/sprockets/v3.0/spM0Vq4M1grDexCfS0d30LrHTzJ-xG9jv4D5UzEKa9o.cache
192
206
  - test/easy_tokens_test.rb
193
207
  - test/fixtures/easy_tokens/tokens.yml
194
- - test/helpers/easy_tokens/tokens_helper_test.rb
195
208
  - test/integration/navigation_test.rb
196
209
  - test/models/easy_tokens/token_test.rb
197
210
  - test/test_helper.rb
@@ -1,3 +0,0 @@
1
- = EasyTokens
2
-
3
- This project rocks and uses MIT-LICENSE.
@@ -1,24 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Value:</strong>
5
- <%= @token.value %>
6
- </p>
7
-
8
- <p>
9
- <strong>Description:</strong>
10
- <%= @token.description %>
11
- </p>
12
-
13
- <p>
14
- <strong>Owner:</strong>
15
- <%= @token.owner %>
16
- </p>
17
-
18
- <p>
19
- <strong>Deactivated at:</strong>
20
- <%= @token.deactivated_at %>
21
- </p>
22
-
23
- <%= link_to 'Edit', edit_token_path(@token) %> |
24
- <%= link_to 'Back', tokens_path %>
@@ -1,382 +0,0 @@
1
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateEasyTokensTokens (20141103194654)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) CREATE TABLE "easy_tokens_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" varchar(255), "description" varchar(255), "owner_id" varchar(255), "deactivated_at" datetime, "created_at" datetime, "updated_at" datetime)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141103194654"]]
9
-  (1.0ms) commit transaction
10
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
-  (0.3ms) begin transaction
13
- --------------------------------------------------------------
14
- EasyTokens::TokenTest: test_assigns_value_after_initialization
15
- --------------------------------------------------------------
16
-  (0.2ms) rollback transaction
17
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
-  (0.3ms) begin transaction
19
- ----------------------------------------------------------
20
- EasyTokens::TokensControllerTest: test_should_create_token
21
- ----------------------------------------------------------
22
-  (0.1ms) rollback transaction
23
-  (0.1ms) begin transaction
24
- -----------------------------------------------------------
25
- EasyTokens::TokensControllerTest: test_should_destroy_token
26
- -----------------------------------------------------------
27
-  (0.1ms) rollback transaction
28
-  (0.1ms) begin transaction
29
- ------------------------------------------------------
30
- EasyTokens::TokensControllerTest: test_should_get_edit
31
- ------------------------------------------------------
32
-  (0.1ms) rollback transaction
33
-  (0.1ms) begin transaction
34
- -------------------------------------------------------
35
- EasyTokens::TokensControllerTest: test_should_get_index
36
- -------------------------------------------------------
37
-  (0.1ms) rollback transaction
38
-  (0.1ms) begin transaction
39
- -----------------------------------------------------
40
- EasyTokens::TokensControllerTest: test_should_get_new
41
- -----------------------------------------------------
42
-  (0.1ms) rollback transaction
43
-  (0.1ms) begin transaction
44
- --------------------------------------------------------
45
- EasyTokens::TokensControllerTest: test_should_show_token
46
- --------------------------------------------------------
47
-  (0.0ms) rollback transaction
48
-  (0.1ms) begin transaction
49
- ----------------------------------------------------------
50
- EasyTokens::TokensControllerTest: test_should_update_token
51
- ----------------------------------------------------------
52
-  (0.0ms) rollback transaction
53
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
54
-  (0.1ms) begin transaction
55
- ----------------------------------------------------------
56
- EasyTokens::TokensControllerTest: test_should_create_token
57
- ----------------------------------------------------------
58
-  (0.2ms) rollback transaction
59
-  (0.1ms) begin transaction
60
- -----------------------------------------------------------
61
- EasyTokens::TokensControllerTest: test_should_destroy_token
62
- -----------------------------------------------------------
63
-  (0.2ms) rollback transaction
64
-  (0.1ms) begin transaction
65
- ------------------------------------------------------
66
- EasyTokens::TokensControllerTest: test_should_get_edit
67
- ------------------------------------------------------
68
-  (0.0ms) rollback transaction
69
-  (0.2ms) begin transaction
70
- -------------------------------------------------------
71
- EasyTokens::TokensControllerTest: test_should_get_index
72
- -------------------------------------------------------
73
-  (0.0ms) rollback transaction
74
-  (0.1ms) begin transaction
75
- -----------------------------------------------------
76
- EasyTokens::TokensControllerTest: test_should_get_new
77
- -----------------------------------------------------
78
-  (0.0ms) rollback transaction
79
-  (0.1ms) begin transaction
80
- --------------------------------------------------------
81
- EasyTokens::TokensControllerTest: test_should_show_token
82
- --------------------------------------------------------
83
-  (0.0ms) rollback transaction
84
-  (0.1ms) begin transaction
85
- ----------------------------------------------------------
86
- EasyTokens::TokensControllerTest: test_should_update_token
87
- ----------------------------------------------------------
88
-  (0.0ms) rollback transaction
89
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
90
-  (0.2ms) begin transaction
91
- ----------------------------------------------------------
92
- EasyTokens::TokensControllerTest: test_should_create_token
93
- ----------------------------------------------------------
94
-  (0.2ms) rollback transaction
95
-  (0.1ms) begin transaction
96
- -----------------------------------------------------------
97
- EasyTokens::TokensControllerTest: test_should_destroy_token
98
- -----------------------------------------------------------
99
-  (0.1ms) rollback transaction
100
-  (0.1ms) begin transaction
101
- ------------------------------------------------------
102
- EasyTokens::TokensControllerTest: test_should_get_edit
103
- ------------------------------------------------------
104
-  (0.1ms) rollback transaction
105
-  (0.1ms) begin transaction
106
- -------------------------------------------------------
107
- EasyTokens::TokensControllerTest: test_should_get_index
108
- -------------------------------------------------------
109
-  (0.1ms) rollback transaction
110
-  (0.1ms) begin transaction
111
- -----------------------------------------------------
112
- EasyTokens::TokensControllerTest: test_should_get_new
113
- -----------------------------------------------------
114
-  (0.2ms) rollback transaction
115
-  (0.1ms) begin transaction
116
- --------------------------------------------------------
117
- EasyTokens::TokensControllerTest: test_should_show_token
118
- --------------------------------------------------------
119
-  (0.1ms) rollback transaction
120
-  (0.2ms) begin transaction
121
- ----------------------------------------------------------
122
- EasyTokens::TokensControllerTest: test_should_update_token
123
- ----------------------------------------------------------
124
-  (0.1ms) rollback transaction
125
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
-  (0.2ms) begin transaction
127
- ----------------------------------------------------------
128
- EasyTokens::TokensControllerTest: test_should_create_token
129
- ----------------------------------------------------------
130
-  (0.2ms) rollback transaction
131
-  (0.1ms) begin transaction
132
- -----------------------------------------------------------
133
- EasyTokens::TokensControllerTest: test_should_destroy_token
134
- -----------------------------------------------------------
135
-  (0.1ms) rollback transaction
136
-  (0.1ms) begin transaction
137
- ------------------------------------------------------
138
- EasyTokens::TokensControllerTest: test_should_get_edit
139
- ------------------------------------------------------
140
-  (0.1ms) rollback transaction
141
-  (0.1ms) begin transaction
142
- -------------------------------------------------------
143
- EasyTokens::TokensControllerTest: test_should_get_index
144
- -------------------------------------------------------
145
-  (0.1ms) rollback transaction
146
-  (0.1ms) begin transaction
147
- -----------------------------------------------------
148
- EasyTokens::TokensControllerTest: test_should_get_new
149
- -----------------------------------------------------
150
-  (0.1ms) rollback transaction
151
-  (0.1ms) begin transaction
152
- --------------------------------------------------------
153
- EasyTokens::TokensControllerTest: test_should_show_token
154
- --------------------------------------------------------
155
-  (0.0ms) rollback transaction
156
-  (0.0ms) begin transaction
157
- ----------------------------------------------------------
158
- EasyTokens::TokensControllerTest: test_should_update_token
159
- ----------------------------------------------------------
160
-  (0.0ms) rollback transaction
161
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
162
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
163
-  (0.3ms) begin transaction
164
- Fixture Delete (1.0ms) DELETE FROM "easy_tokens_tokens"
165
- Fixture Insert (0.6ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:45:48', '2014-11-04 07:45:48', 980190962)
166
- Fixture Insert (0.1ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:45:48', '2014-11-04 07:45:48', 298486374)
167
-  (4.4ms) commit transaction
168
-  (0.1ms) begin transaction
169
- ----------------------------------------------------------
170
- EasyTokens::TokensControllerTest: test_should_create_token
171
- ----------------------------------------------------------
172
-  (0.1ms) rollback transaction
173
-  (0.1ms) begin transaction
174
- -----------------------------------------------------------
175
- EasyTokens::TokensControllerTest: test_should_destroy_token
176
- -----------------------------------------------------------
177
-  (0.1ms) rollback transaction
178
-  (0.1ms) begin transaction
179
- ------------------------------------------------------
180
- EasyTokens::TokensControllerTest: test_should_get_edit
181
- ------------------------------------------------------
182
-  (0.1ms) rollback transaction
183
-  (0.1ms) begin transaction
184
- -------------------------------------------------------
185
- EasyTokens::TokensControllerTest: test_should_get_index
186
- -------------------------------------------------------
187
-  (0.1ms) rollback transaction
188
-  (0.1ms) begin transaction
189
- -----------------------------------------------------
190
- EasyTokens::TokensControllerTest: test_should_get_new
191
- -----------------------------------------------------
192
-  (0.1ms) rollback transaction
193
-  (0.1ms) begin transaction
194
- --------------------------------------------------------
195
- EasyTokens::TokensControllerTest: test_should_show_token
196
- --------------------------------------------------------
197
-  (0.1ms) rollback transaction
198
-  (0.1ms) begin transaction
199
- ----------------------------------------------------------
200
- EasyTokens::TokensControllerTest: test_should_update_token
201
- ----------------------------------------------------------
202
-  (0.0ms) rollback transaction
203
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
204
-  (0.1ms) begin transaction
205
- Fixture Delete (0.5ms) DELETE FROM "easy_tokens_tokens"
206
- Fixture Insert (0.7ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:46:02', '2014-11-04 07:46:02', 980190962)
207
- Fixture Insert (0.1ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:46:02', '2014-11-04 07:46:02', 298486374)
208
-  (1.1ms) commit transaction
209
-  (0.1ms) begin transaction
210
- ----------------------------------------------------------
211
- EasyTokens::TokensControllerTest: test_should_create_token
212
- ----------------------------------------------------------
213
- EasyTokens::Token Load (0.3ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
214
-  (0.1ms) SELECT COUNT(*) FROM "easy_tokens_tokens"
215
-  (0.1ms) rollback transaction
216
-  (0.1ms) begin transaction
217
- -----------------------------------------------------------
218
- EasyTokens::TokensControllerTest: test_should_destroy_token
219
- -----------------------------------------------------------
220
- EasyTokens::Token Load (0.2ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
221
-  (0.1ms) SELECT COUNT(*) FROM "easy_tokens_tokens"
222
-  (0.1ms) rollback transaction
223
-  (0.1ms) begin transaction
224
- ------------------------------------------------------
225
- EasyTokens::TokensControllerTest: test_should_get_edit
226
- ------------------------------------------------------
227
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
228
-  (0.1ms) rollback transaction
229
-  (0.1ms) begin transaction
230
- -------------------------------------------------------
231
- EasyTokens::TokensControllerTest: test_should_get_index
232
- -------------------------------------------------------
233
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
234
-  (0.1ms) rollback transaction
235
-  (0.1ms) begin transaction
236
- -----------------------------------------------------
237
- EasyTokens::TokensControllerTest: test_should_get_new
238
- -----------------------------------------------------
239
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
240
-  (0.1ms) rollback transaction
241
-  (0.1ms) begin transaction
242
- --------------------------------------------------------
243
- EasyTokens::TokensControllerTest: test_should_show_token
244
- --------------------------------------------------------
245
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
246
-  (0.1ms) rollback transaction
247
-  (0.1ms) begin transaction
248
- ----------------------------------------------------------
249
- EasyTokens::TokensControllerTest: test_should_update_token
250
- ----------------------------------------------------------
251
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
252
-  (0.1ms) rollback transaction
253
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
254
-  (0.2ms) begin transaction
255
- Fixture Delete (0.7ms) DELETE FROM "easy_tokens_tokens"
256
- Fixture Insert (0.5ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:46:47', '2014-11-04 07:46:47', 980190962)
257
- Fixture Insert (0.1ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:46:47', '2014-11-04 07:46:47', 298486374)
258
-  (0.8ms) commit transaction
259
-  (0.1ms) begin transaction
260
- ----------------------------------------------------------
261
- EasyTokens::TokensControllerTest: test_should_create_token
262
- ----------------------------------------------------------
263
-  (0.1ms) rollback transaction
264
-  (0.1ms) begin transaction
265
- -----------------------------------------------------------
266
- EasyTokens::TokensControllerTest: test_should_destroy_token
267
- -----------------------------------------------------------
268
-  (0.1ms) rollback transaction
269
-  (0.1ms) begin transaction
270
- ------------------------------------------------------
271
- EasyTokens::TokensControllerTest: test_should_get_edit
272
- ------------------------------------------------------
273
-  (0.0ms) rollback transaction
274
-  (0.1ms) begin transaction
275
- -------------------------------------------------------
276
- EasyTokens::TokensControllerTest: test_should_get_index
277
- -------------------------------------------------------
278
-  (0.1ms) rollback transaction
279
-  (0.1ms) begin transaction
280
- -----------------------------------------------------
281
- EasyTokens::TokensControllerTest: test_should_get_new
282
- -----------------------------------------------------
283
-  (0.1ms) rollback transaction
284
-  (0.1ms) begin transaction
285
- --------------------------------------------------------
286
- EasyTokens::TokensControllerTest: test_should_show_token
287
- --------------------------------------------------------
288
-  (0.1ms) rollback transaction
289
-  (0.1ms) begin transaction
290
- ----------------------------------------------------------
291
- EasyTokens::TokensControllerTest: test_should_update_token
292
- ----------------------------------------------------------
293
-  (0.1ms) rollback transaction
294
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
295
-  (0.2ms) begin transaction
296
- Fixture Delete (0.7ms) DELETE FROM "easy_tokens_tokens"
297
- Fixture Insert (0.5ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:47:35', '2014-11-04 07:47:35', 980190962)
298
- Fixture Insert (0.1ms) INSERT INTO "easy_tokens_tokens" ("value", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2014-11-04 07:47:35', '2014-11-04 07:47:35', 298486374)
299
-  (1.1ms) commit transaction
300
-  (0.1ms) begin transaction
301
- ----------------------------------------------------------
302
- EasyTokens::TokensControllerTest: test_should_create_token
303
- ----------------------------------------------------------
304
- EasyTokens::Token Load (0.3ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
305
-  (0.1ms) SELECT COUNT(*) FROM "easy_tokens_tokens"
306
- Processing by EasyTokens::TokensController#create as HTML
307
- Parameters: {"token"=>{"deactivated_at"=>nil, "description"=>"MyString", "owner_id"=>nil, "value"=>"MyString"}}
308
-  (0.5ms) SAVEPOINT active_record_1
309
- SQL (0.6ms) INSERT INTO "easy_tokens_tokens" ("created_at", "description", "updated_at", "value") VALUES (?, ?, ?, ?) [["created_at", "2014-11-04 07:47:35.187953"], ["description", "MyString"], ["updated_at", "2014-11-04 07:47:35.187953"], ["value", "MyString"]]
310
-  (0.1ms) RELEASE SAVEPOINT active_record_1
311
- Redirected to http://test.host/easy_tokens/tokens/980190963
312
- Completed 302 Found in 12ms (ActiveRecord: 1.2ms)
313
-  (0.1ms) SELECT COUNT(*) FROM "easy_tokens_tokens"
314
-  (0.9ms) rollback transaction
315
-  (0.1ms) begin transaction
316
- -----------------------------------------------------------
317
- EasyTokens::TokensControllerTest: test_should_destroy_token
318
- -----------------------------------------------------------
319
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
320
-  (0.1ms) SELECT COUNT(*) FROM "easy_tokens_tokens"
321
- Processing by EasyTokens::TokensController#destroy as HTML
322
- Parameters: {"id"=>"980190962"}
323
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
324
-  (0.1ms) SAVEPOINT active_record_1
325
- SQL (0.2ms) DELETE FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? [["id", 980190962]]
326
-  (0.0ms) RELEASE SAVEPOINT active_record_1
327
- Redirected to http://test.host/easy_tokens/tokens
328
- Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
329
-  (0.1ms) SELECT COUNT(*) FROM "easy_tokens_tokens"
330
-  (0.5ms) rollback transaction
331
-  (0.2ms) begin transaction
332
- ------------------------------------------------------
333
- EasyTokens::TokensControllerTest: test_should_get_edit
334
- ------------------------------------------------------
335
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
336
- Processing by EasyTokens::TokensController#edit as HTML
337
- Parameters: {"id"=>"980190962"}
338
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
339
- Rendered /Users/adamo/github/easy_tokens/app/views/easy_tokens/tokens/_form.html.erb (26.1ms)
340
- Completed 200 OK in 63ms (Views: 61.9ms | ActiveRecord: 0.1ms)
341
-  (0.1ms) rollback transaction
342
-  (0.1ms) begin transaction
343
- -------------------------------------------------------
344
- EasyTokens::TokensControllerTest: test_should_get_index
345
- -------------------------------------------------------
346
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
347
- Processing by EasyTokens::TokensController#index as HTML
348
- EasyTokens::Token Load (0.2ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens"
349
- Completed 200 OK in 18ms (Views: 17.9ms | ActiveRecord: 0.1ms)
350
-  (0.2ms) rollback transaction
351
-  (0.1ms) begin transaction
352
- -----------------------------------------------------
353
- EasyTokens::TokensControllerTest: test_should_get_new
354
- -----------------------------------------------------
355
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
356
- Processing by EasyTokens::TokensController#new as HTML
357
- Rendered /Users/adamo/github/easy_tokens/app/views/easy_tokens/tokens/_form.html.erb (2.5ms)
358
- Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.0ms)
359
-  (0.1ms) rollback transaction
360
-  (0.1ms) begin transaction
361
- --------------------------------------------------------
362
- EasyTokens::TokensControllerTest: test_should_show_token
363
- --------------------------------------------------------
364
- EasyTokens::Token Load (0.2ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
365
- Processing by EasyTokens::TokensController#show as HTML
366
- Parameters: {"id"=>"980190962"}
367
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
368
- Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.1ms)
369
-  (0.1ms) rollback transaction
370
-  (0.2ms) begin transaction
371
- ----------------------------------------------------------
372
- EasyTokens::TokensControllerTest: test_should_update_token
373
- ----------------------------------------------------------
374
- EasyTokens::Token Load (0.1ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
375
- Processing by EasyTokens::TokensController#update as HTML
376
- Parameters: {"token"=>{"deactivated_at"=>nil, "description"=>"MyString", "owner_id"=>nil, "value"=>"MyString"}, "id"=>"980190962"}
377
- EasyTokens::Token Load (0.2ms) SELECT "easy_tokens_tokens".* FROM "easy_tokens_tokens" WHERE "easy_tokens_tokens"."id" = ? LIMIT 1 [["id", 980190962]]
378
-  (0.1ms) SAVEPOINT active_record_1
379
-  (0.1ms) RELEASE SAVEPOINT active_record_1
380
- Redirected to http://test.host/easy_tokens/tokens/980190962
381
- Completed 302 Found in 16ms (ActiveRecord: 0.3ms)
382
-  (0.2ms) rollback transaction