siringa 0.0.5 → 0.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 11cf237b2bd1e3a7a176841483c73283b2a8ba1a
4
- data.tar.gz: 1b1d23655815f04acf332a8903e467990547bf8a
2
+ SHA256:
3
+ metadata.gz: 98da03654dab98c0002993b8edf59c23ad55a47276c3ce554ba9030c1a08a92b
4
+ data.tar.gz: 86a3d23012075b42eb382effdf108d5660e5a5d08a48173cfbedc8d2e19ac7a3
5
5
  SHA512:
6
- metadata.gz: 33592bd1f814a4b9c165fecb654b6da94cc191631caea3fc1d6c8931745a9158edb4b525f17f14223d5c00eb2c465e7759086dda050df3e854d2115777d25830
7
- data.tar.gz: 2f7134f3caff7c11a8920705ffbf8145c89335d2c8ee59af4c0dd07cb10d9809ea4eaf36bfbc5f399bef9fb0e03795dc431fe61c7e18d03afdd731d9a8cf1df1
6
+ metadata.gz: 4e954cc8176bf7aebf295da22b6d17cf1f04877570a7904530bb0d92a113cd93c0b0322d199e486499162da6118d61a1c5fbcbb30899ac99a7ba85a44997b9a1
7
+ data.tar.gz: 10f4c581bd5134e0490dc53a2b8fd03934af760b18f9e9a9816ea4ae60e7ce309a11d50283ad3a5fa2612b56a6ea1e8225c5a870eae84c907835408d3e87e5c4
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Siringa :syringe:
2
- This gem was born working on pure client acceptance testing in [Teambox](http://www.teambox.com).
2
+ This gem was born working on pure client acceptance testing in [Redbooth](http://www.redbooth.com).
3
+
4
+ ## WARNING :warning:
5
+ Due to a conflict with reserved word `load` we are deprecating `#load` action in `SiringaController` in favour of `#load_definition`. This change is reflected by a warning in logs but will be dropped in version `0.1.0`.
6
+
3
7
  ## The problem
4
8
 
5
9
  You have a Rails based API and you need to write some acceptance tests using your Javascript/iOS/Android/whatever client.
@@ -72,24 +76,24 @@ Now that we've created our definitions we could use them in our two cases:
72
76
  ### As seed data
73
77
  You could just load the `initial` definition running the following rake recipe after your deploy:
74
78
  ```console
75
- rake siringa:load
79
+ rake siringa:load_definition
76
80
  ```
77
81
  `initial` is the default definition this Rake task recipe will try to load, if you want to load another definition instead you could pass its name as argument:
78
82
  ```console
79
- rake 'siringa:load[another_definition]'
83
+ rake 'siringa:load_definition[another_definition]'
80
84
  ```
81
85
  This will load a definition named `:another_definition`. Please note that if you use Zsh shell you'll need to use quotes, more info [here](http://robots.thoughtbot.com/post/18129303042/how-to-use-arguments-in-a-rake-task).
82
86
 
83
87
  If you want to force a Rails environment you could just run the Sriringa recipe specifing the `RAILS_ENV` environmental variable:
84
88
  ```console
85
- RAILS_ENV=development rake siringa:load
89
+ RAILS_ENV=development rake siringa:load_definition
86
90
  ```
87
91
 
88
92
  ### During an acceptance test
89
93
  As you can see running `rake routes`, Siringa added 3 new routes to your API:
90
94
  ```console
91
95
  Routes for Siringa::Engine:
92
- POST /load/:definition(.:format) siringa/siringa#load
96
+ POST /load_definition/:definition(.:format) siringa/siringa#load_definition
93
97
  dump POST /dump(.:format) siringa/siringa#dump
94
98
  restore POST /restore(.:format) siringa/siringa#restore
95
99
  ```
@@ -100,7 +104,7 @@ The workflow I propose here is:
100
104
 
101
105
  This will create a `.dump` file in the `tmp/dumps` directory created during the install process. You could create as many dump files as you want but Siringa will keep only the latest 5 dumps created.
102
106
 
103
- 2. Load a Siringa definition performing a `POST` request to `YOURHOST/siringa/load/specific`
107
+ 2. Load a Siringa definition performing a `POST` request to `YOURHOST/siringa/load_definition/specific`
104
108
 
105
109
  This will run the code defined in a definition named `specific` on the server.
106
110
 
@@ -126,7 +130,7 @@ end
126
130
  ## Acceptance test example
127
131
  Just to get the idea, the following script will show you how to use Siringa in a acceptance test using Selenium, [rest-client](https://github.com/rest-client/rest-client) and RSpec:
128
132
  ```ruby
129
- require 'selenium-webdriver'dd
133
+ require 'selenium-webdriver'
130
134
  require 'rspec'
131
135
  require 'rest_client'
132
136
 
@@ -144,9 +148,9 @@ describe "Acceptance test using Siringa" do
144
148
  @driver.quit
145
149
  end
146
150
 
147
- it "Load a definition and test something" do
148
- # Load a definition named 'specific'
149
- RestClient.post 'YOURHOST/siringa/load', { :definition => :specific }
151
+ it "Loads a definition and test something" do
152
+ # Loads a definition named 'specific'
153
+ RestClient.post 'YOURHOST/siringa/load_definition', { definition: :specific }
150
154
 
151
155
  # Here goes your test
152
156
 
@@ -163,5 +167,5 @@ end
163
167
  ## How to collaborate
164
168
  * Fork the repo and send a pull request, thanks!
165
169
 
166
- # Licence
170
+ # License
167
171
  MIT-LICENSE 2013 Enrico Stano
@@ -1,15 +1,15 @@
1
1
  module Siringa
2
- class SiringaController < ApplicationController
2
+ class SiringaController < ActionController::Base
3
+
4
+ skip_before_action :verify_authenticity_token
3
5
 
4
- def load
5
- Siringa.load_definition(params['definition'].to_sym)
6
- resp = { :text => "Definition #{params['definition']} loaded.", :status => :created }
6
+ def load_definition
7
+ result = Siringa.load_definition(params['definition'].to_sym, options)
8
+ render json: result, status: :created
7
9
  rescue ArgumentError => exception
8
- resp = { :text => exception.to_s, :status => :method_not_allowed }
9
- rescue => exception
10
- resp = { :text => exception.to_s, :status => :internal_server_error }
11
- ensure
12
- render resp
10
+ render json: { error: exception.to_s }, status: :method_not_allowed
11
+ rescue StandardError => exception
12
+ render json: { error: exception.to_s }, status: :internal_server_error
13
13
  end
14
14
 
15
15
  def dump
@@ -45,5 +45,13 @@ module Siringa
45
45
  render resp
46
46
  end
47
47
 
48
+ private
49
+
50
+ # Returns the arguments to be passed to the definition
51
+ #
52
+ # @return [Hash] arguments of the definition
53
+ def options
54
+ params[:siringa_args]
55
+ end
48
56
  end
49
57
  end
@@ -1,5 +1,6 @@
1
1
  Siringa::Engine.routes.draw do
2
- post "load/:definition", :to => "siringa#load"
2
+ post "load/:definition", :to => "siringa#load" # To be deprecated in 0.1.0
3
+ post "load_definition/:definition", :to => "siringa#load_definition"
3
4
  post "dump", :to => "siringa#dump"
4
5
  post "restore", :to => "siringa#restore"
5
6
  end
@@ -8,9 +8,10 @@ module Siringa
8
8
  # Load a definition and run its code
9
9
  #
10
10
  # @param [Symbol] name of the definition
11
- def self.load_definition(name)
11
+ # @param [Hash] arguments of the definition
12
+ def self.load_definition(name, options)
12
13
  if exists_definition?(name)
13
- @definitions[name].call
14
+ @definitions[name].call(options)
14
15
  else
15
16
  raise ArgumentError, "Definition #{name.to_s} does not exist.", caller
16
17
  end
@@ -1,3 +1,3 @@
1
1
  module Siringa
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  namespace :siringa do
2
2
  desc "Load a definition and populate the DB with seed data"
3
- task :load, [:definition] do |t, args|
3
+ task :load_definition, [:definition] do |t, args|
4
4
  args.with_defaults :definition => :initial
5
5
  Rake::Task["environment"].invoke
6
6
  puts <<-EOS
@@ -10,14 +10,33 @@ class SiringaControllerTest < ActionController::TestCase
10
10
  def teardown
11
11
  end
12
12
 
13
- test "load action passing existing factory" do
14
- get :load, { definition: "initial", use_route: "siringa" }
13
+ test "load_definition action passing existing factory" do
14
+ get :load_definition, { definition: "initial", use_route: "siringa" }
15
15
  assert_response :success
16
16
  end
17
17
 
18
- test "load action passing a factory that doesn't exist" do
19
- get :load, { definition: "papapa", use_route: "siringa" }
18
+ test "load_definition action passing a factory that doesn't exist" do
19
+ get :load_definition, { definition: "papapa", use_route: "siringa" }
20
20
  assert_response :method_not_allowed
21
21
  end
22
22
 
23
+ test "load_definition action passing arguments" do
24
+ get :load_definition, {
25
+ definition: "definition_with_arguments",
26
+ siringa_args: { name: 'Robb Stark' },
27
+ use_route: "siringa"
28
+ }
29
+ assert_response :success
30
+ end
31
+
32
+ test "load_definition action returning JSON response" do
33
+ get :load_definition, {
34
+ definition: "definition_with_return",
35
+ siringa_args: { name: 'Ned' },
36
+ use_route: "siringa"
37
+ }
38
+ assert body['id']
39
+ assert_equal 'Ned', body['name']
40
+ assert_equal 'Stark', body['surname']
41
+ end
23
42
  end
@@ -4,3 +4,12 @@ require File.expand_path('../../factories', __FILE__)
4
4
  Siringa.add_definition :initial do
5
5
  FactoryGirl.create :user, name: 'Jesse Pinkman'
6
6
  end
7
+
8
+ Siringa.add_definition :definition_with_arguments do |args|
9
+ FactoryGirl.create :user, name: args[:name]
10
+ end
11
+
12
+ Siringa.add_definition :definition_with_return do |args|
13
+ user = FactoryGirl.create :user, name: args[:name]
14
+ { id: user.id, name: user.name, surname: 'Stark' }
15
+ end
@@ -8,3 +8,8 @@ Rails.backtrace_cleaner.remove_silencers!
8
8
 
9
9
  # Load support files
10
10
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Parse JSON response body
13
+ def body
14
+ JSON.parse(@response.body)
15
+ end
metadata CHANGED
@@ -1,153 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: siringa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Stano
8
- autorequire:
8
+ - Pau Pérez
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-12-03 00:00:00.000000000 Z
12
+ date: 2020-11-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: sqlite3
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - '>='
18
+ - - ">="
18
19
  - !ruby/object:Gem::Version
19
20
  version: '0'
20
21
  type: :development
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - '>='
25
+ - - ">="
25
26
  - !ruby/object:Gem::Version
26
27
  version: '0'
27
28
  description: Remotely populate DB for Rails applications for pure client acceptance
28
29
  testing
29
30
  email:
30
31
  - enricostn@gmail.com
32
+ - saulopefa@gmail.com
31
33
  executables: []
32
34
  extensions: []
33
35
  extra_rdoc_files: []
34
36
  files:
37
+ - MIT-LICENSE
38
+ - README.md
39
+ - Rakefile
35
40
  - app/controllers/siringa/siringa_controller.rb
36
- - app/controllers/siringa/application_controller.rb
37
41
  - config/routes.rb
42
+ - lib/generators/siringa/install_generator.rb
43
+ - lib/siringa.rb
38
44
  - lib/siringa/configuration.rb
39
- - lib/siringa/version.rb
40
45
  - lib/siringa/definitions.rb
41
46
  - lib/siringa/dumps.rb
42
47
  - lib/siringa/engine.rb
48
+ - lib/siringa/version.rb
43
49
  - lib/tasks/siringa_tasks.rake
44
- - lib/siringa.rb
45
- - lib/generators/siringa/install_generator.rb
46
- - MIT-LICENSE
47
- - Rakefile
48
- - README.md
49
- - test/test_helper.rb
50
50
  - test/controllers/siringa_controller_test.rb
51
- - test/integration/navigation_test.rb
52
- - test/siringa_test.rb
53
- - test/dummy/config/database.yml
51
+ - test/dummy/Rakefile
52
+ - test/dummy/app/assets/javascripts/application.js
53
+ - test/dummy/app/assets/stylesheets/application.css
54
+ - test/dummy/app/controllers/application_controller.rb
55
+ - test/dummy/app/helpers/application_helper.rb
56
+ - test/dummy/app/models/user.rb
57
+ - test/dummy/app/views/layouts/application.html.erb
58
+ - test/dummy/config.ru
54
59
  - test/dummy/config/application.rb
60
+ - test/dummy/config/boot.rb
61
+ - test/dummy/config/database.yml
62
+ - test/dummy/config/environment.rb
63
+ - test/dummy/config/environments/development.rb
55
64
  - test/dummy/config/environments/production.rb
56
65
  - test/dummy/config/environments/test.rb
57
- - test/dummy/config/environments/development.rb
58
- - test/dummy/config/locales/en.yml
59
66
  - test/dummy/config/initializers/backtrace_silencers.rb
60
- - test/dummy/config/initializers/mime_types.rb
61
67
  - test/dummy/config/initializers/inflections.rb
62
- - test/dummy/config/initializers/session_store.rb
68
+ - test/dummy/config/initializers/mime_types.rb
63
69
  - test/dummy/config/initializers/secret_token.rb
70
+ - test/dummy/config/initializers/session_store.rb
64
71
  - test/dummy/config/initializers/wrap_parameters.rb
72
+ - test/dummy/config/locales/en.yml
65
73
  - test/dummy/config/routes.rb
66
- - test/dummy/config/boot.rb
67
- - test/dummy/config/environment.rb
68
- - test/dummy/test/siringa/definitions.rb
69
- - test/dummy/test/factories.rb
70
- - test/dummy/config.ru
71
74
  - test/dummy/db/migrate/20130927161308_create_user.rb
72
- - test/dummy/db/test.sqlite3
73
75
  - test/dummy/db/schema.rb
74
- - test/dummy/db/development.sqlite3
75
- - test/dummy/script/rails
76
- - test/dummy/app/helpers/application_helper.rb
77
- - test/dummy/app/controllers/application_controller.rb
78
- - test/dummy/app/assets/javascripts/application.js
79
- - test/dummy/app/assets/stylesheets/application.css
80
- - test/dummy/app/views/layouts/application.html.erb
81
- - test/dummy/app/models/user.rb
82
- - test/dummy/public/500.html
83
76
  - test/dummy/public/404.html
84
77
  - test/dummy/public/422.html
78
+ - test/dummy/public/500.html
85
79
  - test/dummy/public/favicon.ico
86
- - test/dummy/Rakefile
87
- - test/dummy/log/development.log
88
- - test/dummy/log/test.log
80
+ - test/dummy/script/rails
81
+ - test/dummy/test/factories.rb
82
+ - test/dummy/test/siringa/definitions.rb
83
+ - test/integration/navigation_test.rb
84
+ - test/siringa_test.rb
85
+ - test/test_helper.rb
89
86
  homepage: https://github.com/enricostano/siringa
90
87
  licenses:
91
88
  - MIT
92
89
  metadata: {}
93
- post_install_message:
90
+ post_install_message:
94
91
  rdoc_options: []
95
92
  require_paths:
96
93
  - lib
97
94
  required_ruby_version: !ruby/object:Gem::Requirement
98
95
  requirements:
99
- - - '>='
96
+ - - ">="
100
97
  - !ruby/object:Gem::Version
101
98
  version: '0'
102
99
  required_rubygems_version: !ruby/object:Gem::Requirement
103
100
  requirements:
104
- - - '>='
101
+ - - ">="
105
102
  - !ruby/object:Gem::Version
106
103
  version: '0'
107
104
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.1.11
110
- signing_key:
105
+ rubygems_version: 3.1.2
106
+ signing_key:
111
107
  specification_version: 4
112
108
  summary: Remotely populate DB for Rails applications for pure client acceptance testing
113
109
  test_files:
114
- - test/test_helper.rb
115
- - test/controllers/siringa_controller_test.rb
116
- - test/integration/navigation_test.rb
117
- - test/siringa_test.rb
118
- - test/dummy/config/database.yml
119
- - test/dummy/config/application.rb
120
- - test/dummy/config/environments/production.rb
121
- - test/dummy/config/environments/test.rb
122
- - test/dummy/config/environments/development.rb
123
- - test/dummy/config/locales/en.yml
124
- - test/dummy/config/initializers/backtrace_silencers.rb
125
- - test/dummy/config/initializers/mime_types.rb
126
- - test/dummy/config/initializers/inflections.rb
127
- - test/dummy/config/initializers/session_store.rb
128
- - test/dummy/config/initializers/secret_token.rb
129
- - test/dummy/config/initializers/wrap_parameters.rb
130
- - test/dummy/config/routes.rb
131
- - test/dummy/config/boot.rb
132
- - test/dummy/config/environment.rb
133
- - test/dummy/test/siringa/definitions.rb
134
- - test/dummy/test/factories.rb
135
- - test/dummy/config.ru
136
- - test/dummy/db/migrate/20130927161308_create_user.rb
137
- - test/dummy/db/test.sqlite3
138
- - test/dummy/db/schema.rb
139
- - test/dummy/db/development.sqlite3
140
110
  - test/dummy/script/rails
111
+ - test/dummy/db/schema.rb
112
+ - test/dummy/db/migrate/20130927161308_create_user.rb
113
+ - test/dummy/config.ru
114
+ - test/dummy/public/422.html
115
+ - test/dummy/public/500.html
116
+ - test/dummy/public/favicon.ico
117
+ - test/dummy/public/404.html
141
118
  - test/dummy/app/helpers/application_helper.rb
119
+ - test/dummy/app/views/layouts/application.html.erb
142
120
  - test/dummy/app/controllers/application_controller.rb
121
+ - test/dummy/app/models/user.rb
143
122
  - test/dummy/app/assets/javascripts/application.js
144
123
  - test/dummy/app/assets/stylesheets/application.css
145
- - test/dummy/app/views/layouts/application.html.erb
146
- - test/dummy/app/models/user.rb
147
- - test/dummy/public/500.html
148
- - test/dummy/public/404.html
149
- - test/dummy/public/422.html
150
- - test/dummy/public/favicon.ico
124
+ - test/dummy/test/factories.rb
125
+ - test/dummy/test/siringa/definitions.rb
151
126
  - test/dummy/Rakefile
152
- - test/dummy/log/development.log
153
- - test/dummy/log/test.log
127
+ - test/dummy/config/environments/test.rb
128
+ - test/dummy/config/environments/development.rb
129
+ - test/dummy/config/environments/production.rb
130
+ - test/dummy/config/locales/en.yml
131
+ - test/dummy/config/boot.rb
132
+ - test/dummy/config/routes.rb
133
+ - test/dummy/config/environment.rb
134
+ - test/dummy/config/database.yml
135
+ - test/dummy/config/application.rb
136
+ - test/dummy/config/initializers/secret_token.rb
137
+ - test/dummy/config/initializers/mime_types.rb
138
+ - test/dummy/config/initializers/inflections.rb
139
+ - test/dummy/config/initializers/wrap_parameters.rb
140
+ - test/dummy/config/initializers/backtrace_silencers.rb
141
+ - test/dummy/config/initializers/session_store.rb
142
+ - test/test_helper.rb
143
+ - test/integration/navigation_test.rb
144
+ - test/siringa_test.rb
145
+ - test/controllers/siringa_controller_test.rb
@@ -1,4 +0,0 @@
1
- module Siringa
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
Binary file
@@ -1,6 +0,0 @@
1
-  (9.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
2
-  (8.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3
-  (11.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
-  (0.4ms) SELECT version FROM "schema_migrations"
5
-  (9.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927161308')
6
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -1,751 +0,0 @@
1
-  (0.3ms) begin transaction
2
- ----------------------------------------------------------------------------
3
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
4
- ----------------------------------------------------------------------------
5
- Processing by Siringa::SiringaController#load as HTML
6
- Parameters: {"definition"=>"papapa"}
7
- Rendered text template (0.0ms)
8
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
9
-  (0.1ms) rollback transaction
10
-  (0.1ms) begin transaction
11
- ----------------------------------------------------------------
12
- SiringaControllerTest: test_load_action_passing_existing_factory
13
- ----------------------------------------------------------------
14
- Processing by Siringa::SiringaController#load as HTML
15
- Parameters: {"definition"=>"initial"}
16
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
17
-  (0.1ms) rollback transaction
18
-  (0.3ms) begin transaction
19
- ----------------------------------------------------------------------------
20
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
21
- ----------------------------------------------------------------------------
22
- Processing by Siringa::SiringaController#load as HTML
23
- Parameters: {"definition"=>"papapa"}
24
- Rendered text template (0.0ms)
25
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
26
-  (0.1ms) rollback transaction
27
-  (0.1ms) begin transaction
28
- ----------------------------------------------------------------
29
- SiringaControllerTest: test_load_action_passing_existing_factory
30
- ----------------------------------------------------------------
31
- Processing by Siringa::SiringaController#load as HTML
32
- Parameters: {"definition"=>"initial"}
33
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
34
-  (0.0ms) rollback transaction
35
-  (0.3ms) begin transaction
36
- ----------------------------------------------------------------------------
37
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
38
- ----------------------------------------------------------------------------
39
- Processing by Siringa::SiringaController#load as HTML
40
- Parameters: {"definition"=>"papapa"}
41
- Rendered text template (0.0ms)
42
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
43
-  (0.1ms) rollback transaction
44
-  (0.1ms) begin transaction
45
- ----------------------------------------------------------------
46
- SiringaControllerTest: test_load_action_passing_existing_factory
47
- ----------------------------------------------------------------
48
- Processing by Siringa::SiringaController#load as HTML
49
- Parameters: {"definition"=>"initial"}
50
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
51
-  (0.1ms) rollback transaction
52
-  (0.3ms) begin transaction
53
- ----------------------------------------------------------------------------
54
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
55
- ----------------------------------------------------------------------------
56
- Processing by Siringa::SiringaController#load as HTML
57
- Parameters: {"definition"=>"papapa"}
58
- Rendered text template (0.0ms)
59
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
60
-  (0.1ms) rollback transaction
61
-  (0.1ms) begin transaction
62
- ----------------------------------------------------------------
63
- SiringaControllerTest: test_load_action_passing_existing_factory
64
- ----------------------------------------------------------------
65
- Processing by Siringa::SiringaController#load as HTML
66
- Parameters: {"definition"=>"initial"}
67
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
68
-  (0.1ms) rollback transaction
69
-  (0.3ms) begin transaction
70
- ----------------------------------------------------------------------------
71
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
72
- ----------------------------------------------------------------------------
73
- Processing by Siringa::SiringaController#load as HTML
74
- Parameters: {"definition"=>"papapa"}
75
- Rendered text template (0.0ms)
76
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
77
-  (0.1ms) rollback transaction
78
-  (0.1ms) begin transaction
79
- ----------------------------------------------------------------
80
- SiringaControllerTest: test_load_action_passing_existing_factory
81
- ----------------------------------------------------------------
82
- Processing by Siringa::SiringaController#load as HTML
83
- Parameters: {"definition"=>"initial"}
84
- Completed 500 Internal Server Error in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
85
-  (0.1ms) rollback transaction
86
-  (0.3ms) begin transaction
87
- ----------------------------------------------------------------------------
88
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
89
- ----------------------------------------------------------------------------
90
- Processing by Siringa::SiringaController#load as HTML
91
- Parameters: {"definition"=>"papapa"}
92
- Rendered text template (0.0ms)
93
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
94
-  (0.1ms) rollback transaction
95
-  (0.1ms) begin transaction
96
- ----------------------------------------------------------------
97
- SiringaControllerTest: test_load_action_passing_existing_factory
98
- ----------------------------------------------------------------
99
- Processing by Siringa::SiringaController#load as HTML
100
- Parameters: {"definition"=>"initial"}
101
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
102
-  (0.1ms) rollback transaction
103
-  (0.3ms) begin transaction
104
- ----------------------------------------------------------------------------
105
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
106
- ----------------------------------------------------------------------------
107
- Processing by Siringa::SiringaController#load as HTML
108
- Parameters: {"definition"=>"papapa"}
109
- Rendered text template (0.0ms)
110
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
111
-  (0.1ms) rollback transaction
112
-  (0.1ms) begin transaction
113
- ----------------------------------------------------------------
114
- SiringaControllerTest: test_load_action_passing_existing_factory
115
- ----------------------------------------------------------------
116
- Processing by Siringa::SiringaController#load as HTML
117
- Parameters: {"definition"=>"initial"}
118
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
119
-  (0.1ms) rollback transaction
120
-  (0.3ms) begin transaction
121
- ----------------------------------------------------------------------------
122
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
123
- ----------------------------------------------------------------------------
124
- Processing by Siringa::SiringaController#load as HTML
125
- Parameters: {"definition"=>"papapa"}
126
- Rendered text template (0.0ms)
127
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
128
-  (0.1ms) rollback transaction
129
-  (0.1ms) begin transaction
130
- ----------------------------------------------------------------
131
- SiringaControllerTest: test_load_action_passing_existing_factory
132
- ----------------------------------------------------------------
133
- Processing by Siringa::SiringaController#load as HTML
134
- Parameters: {"definition"=>"initial"}
135
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
136
-  (0.1ms) rollback transaction
137
-  (0.3ms) begin transaction
138
- ----------------------------------------------------------------------------
139
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
140
- ----------------------------------------------------------------------------
141
- Processing by Siringa::SiringaController#load as HTML
142
- Parameters: {"definition"=>"papapa"}
143
- Rendered text template (0.0ms)
144
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
145
-  (0.1ms) rollback transaction
146
-  (0.1ms) begin transaction
147
- ----------------------------------------------------------------
148
- SiringaControllerTest: test_load_action_passing_existing_factory
149
- ----------------------------------------------------------------
150
- Processing by Siringa::SiringaController#load as HTML
151
- Parameters: {"definition"=>"initial"}
152
- Completed 500 Internal Server Error in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
153
-  (0.1ms) rollback transaction
154
-  (0.3ms) begin transaction
155
- ----------------------------------------------------------------------------
156
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
157
- ----------------------------------------------------------------------------
158
- Processing by Siringa::SiringaController#load as HTML
159
- Parameters: {"definition"=>"papapa"}
160
- Rendered text template (0.0ms)
161
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
162
-  (0.1ms) rollback transaction
163
-  (0.1ms) begin transaction
164
- ----------------------------------------------------------------
165
- SiringaControllerTest: test_load_action_passing_existing_factory
166
- ----------------------------------------------------------------
167
- Processing by Siringa::SiringaController#load as HTML
168
- Parameters: {"definition"=>"initial"}
169
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
170
-  (0.1ms) rollback transaction
171
-  (0.3ms) begin transaction
172
- ----------------------------------------------------------------------------
173
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
174
- ----------------------------------------------------------------------------
175
- Processing by Siringa::SiringaController#load as HTML
176
- Parameters: {"definition"=>"papapa"}
177
- Rendered text template (0.0ms)
178
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
179
-  (0.1ms) rollback transaction
180
-  (0.1ms) begin transaction
181
- ----------------------------------------------------------------
182
- SiringaControllerTest: test_load_action_passing_existing_factory
183
- ----------------------------------------------------------------
184
- Processing by Siringa::SiringaController#load as HTML
185
- Parameters: {"definition"=>"initial"}
186
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
187
-  (0.1ms) rollback transaction
188
-  (0.3ms) begin transaction
189
- ----------------------------------------------------------------------------
190
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
191
- ----------------------------------------------------------------------------
192
- Processing by Siringa::SiringaController#load as HTML
193
- Parameters: {"definition"=>"papapa"}
194
- Rendered text template (0.0ms)
195
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
196
-  (0.1ms) rollback transaction
197
-  (0.1ms) begin transaction
198
- ----------------------------------------------------------------
199
- SiringaControllerTest: test_load_action_passing_existing_factory
200
- ----------------------------------------------------------------
201
- Processing by Siringa::SiringaController#load as HTML
202
- Parameters: {"definition"=>"initial"}
203
- Completed 500 Internal Server Error in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms)
204
-  (0.1ms) rollback transaction
205
-  (17.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
206
-  (17.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
207
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
- Migrating to CreateUser (20130927161308)
209
-  (0.1ms) begin transaction
210
-  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
211
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927161308"]]
212
-  (17.5ms) commit transaction
213
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
214
-  (0.3ms) begin transaction
215
- ----------------------------------------------------------------------------
216
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
217
- ----------------------------------------------------------------------------
218
- Processing by Siringa::SiringaController#load as HTML
219
- Parameters: {"definition"=>"papapa"}
220
- Rendered text template (0.0ms)
221
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
222
-  (0.1ms) rollback transaction
223
-  (0.1ms) begin transaction
224
- ----------------------------------------------------------------
225
- SiringaControllerTest: test_load_action_passing_existing_factory
226
- ----------------------------------------------------------------
227
- Processing by Siringa::SiringaController#load as HTML
228
- Parameters: {"definition"=>"initial"}
229
-  (0.1ms) SAVEPOINT active_record_1
230
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
231
-  (0.1ms) RELEASE SAVEPOINT active_record_1
232
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
233
-  (0.1ms) rollback transaction
234
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
236
-  (0.3ms) begin transaction
237
- ----------------------------------------------------------------------------
238
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
239
- ----------------------------------------------------------------------------
240
- Processing by Siringa::SiringaController#load as HTML
241
- Parameters: {"definition"=>"papapa"}
242
- Rendered text template (0.0ms)
243
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
244
-  (0.1ms) rollback transaction
245
-  (0.1ms) begin transaction
246
- ----------------------------------------------------------------
247
- SiringaControllerTest: test_load_action_passing_existing_factory
248
- ----------------------------------------------------------------
249
- Processing by Siringa::SiringaController#load as HTML
250
- Parameters: {"definition"=>"initial"}
251
-  (0.1ms) SAVEPOINT active_record_1
252
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
253
-  (0.1ms) RELEASE SAVEPOINT active_record_1
254
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
255
-  (0.1ms) rollback transaction
256
-  (0.3ms) begin transaction
257
- ----------------------------------------------------------------------------
258
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
259
- ----------------------------------------------------------------------------
260
- Processing by Siringa::SiringaController#load as HTML
261
- Parameters: {"definition"=>"papapa"}
262
- Rendered text template (0.0ms)
263
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
264
-  (0.1ms) rollback transaction
265
-  (0.1ms) begin transaction
266
- ----------------------------------------------------------------
267
- SiringaControllerTest: test_load_action_passing_existing_factory
268
- ----------------------------------------------------------------
269
- Processing by Siringa::SiringaController#load as HTML
270
- Parameters: {"definition"=>"initial"}
271
-  (0.1ms) SAVEPOINT active_record_1
272
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
273
-  (0.1ms) RELEASE SAVEPOINT active_record_1
274
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
275
-  (0.1ms) rollback transaction
276
-  (0.3ms) begin transaction
277
- ----------------------------------------------------------------------------
278
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
279
- ----------------------------------------------------------------------------
280
- Processing by Siringa::SiringaController#load as HTML
281
- Parameters: {"definition"=>"papapa"}
282
- Rendered text template (0.0ms)
283
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
284
-  (0.1ms) rollback transaction
285
-  (0.1ms) begin transaction
286
- ----------------------------------------------------------------
287
- SiringaControllerTest: test_load_action_passing_existing_factory
288
- ----------------------------------------------------------------
289
- Processing by Siringa::SiringaController#load as HTML
290
- Parameters: {"definition"=>"initial"}
291
- Completed 405 Method Not Allowed in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
292
-  (0.1ms) rollback transaction
293
-  (0.3ms) begin transaction
294
- ----------------------------------------------------------------------------
295
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
296
- ----------------------------------------------------------------------------
297
- Processing by Siringa::SiringaController#load as HTML
298
- Parameters: {"definition"=>"papapa"}
299
- Rendered text template (0.0ms)
300
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
301
-  (0.1ms) rollback transaction
302
-  (0.1ms) begin transaction
303
- ----------------------------------------------------------------
304
- SiringaControllerTest: test_load_action_passing_existing_factory
305
- ----------------------------------------------------------------
306
- Processing by Siringa::SiringaController#load as HTML
307
- Parameters: {"definition"=>"initial"}
308
-  (0.1ms) SAVEPOINT active_record_1
309
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
310
-  (0.1ms) RELEASE SAVEPOINT active_record_1
311
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
312
-  (0.1ms) rollback transaction
313
-  (0.3ms) begin transaction
314
- ----------------------------------------------------------------------------
315
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
316
- ----------------------------------------------------------------------------
317
- Processing by Siringa::SiringaController#load as HTML
318
- Parameters: {"definition"=>"papapa"}
319
- Rendered text template (0.0ms)
320
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
321
-  (0.1ms) rollback transaction
322
-  (0.1ms) begin transaction
323
- ----------------------------------------------------------------
324
- SiringaControllerTest: test_load_action_passing_existing_factory
325
- ----------------------------------------------------------------
326
- Processing by Siringa::SiringaController#load as HTML
327
- Parameters: {"definition"=>"initial"}
328
-  (0.1ms) SAVEPOINT active_record_1
329
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
330
-  (0.1ms) RELEASE SAVEPOINT active_record_1
331
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
332
-  (0.1ms) rollback transaction
333
-  (0.3ms) begin transaction
334
- ----------------------------------------------------------------------------
335
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
336
- ----------------------------------------------------------------------------
337
- Processing by Siringa::SiringaController#load as HTML
338
- Parameters: {"definition"=>"papapa"}
339
- Rendered text template (0.0ms)
340
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
341
-  (0.1ms) rollback transaction
342
-  (0.1ms) begin transaction
343
- ----------------------------------------------------------------
344
- SiringaControllerTest: test_load_action_passing_existing_factory
345
- ----------------------------------------------------------------
346
- Processing by Siringa::SiringaController#load as HTML
347
- Parameters: {"definition"=>"initial"}
348
-  (0.1ms) SAVEPOINT active_record_1
349
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
350
-  (0.1ms) RELEASE SAVEPOINT active_record_1
351
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
352
-  (0.1ms) rollback transaction
353
-  (0.3ms) begin transaction
354
- ----------------------------------------------------------------------------
355
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
356
- ----------------------------------------------------------------------------
357
- Processing by Siringa::SiringaController#load as HTML
358
- Parameters: {"definition"=>"papapa"}
359
- Rendered text template (0.0ms)
360
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
361
-  (0.1ms) rollback transaction
362
-  (0.1ms) begin transaction
363
- ----------------------------------------------------------------
364
- SiringaControllerTest: test_load_action_passing_existing_factory
365
- ----------------------------------------------------------------
366
- Processing by Siringa::SiringaController#load as HTML
367
- Parameters: {"definition"=>"initial"}
368
-  (0.1ms) SAVEPOINT active_record_1
369
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
370
-  (0.1ms) RELEASE SAVEPOINT active_record_1
371
- Completed 201 Created in 9ms (Views: 0.4ms | ActiveRecord: 0.8ms)
372
-  (0.1ms) rollback transaction
373
-  (0.3ms) begin transaction
374
- ----------------------------------------------------------------------------
375
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
376
- ----------------------------------------------------------------------------
377
- Processing by Siringa::SiringaController#load as HTML
378
- Parameters: {"definition"=>"papapa"}
379
- Rendered text template (0.0ms)
380
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
381
-  (0.1ms) rollback transaction
382
-  (0.1ms) begin transaction
383
- ----------------------------------------------------------------
384
- SiringaControllerTest: test_load_action_passing_existing_factory
385
- ----------------------------------------------------------------
386
- Processing by Siringa::SiringaController#load as HTML
387
- Parameters: {"definition"=>"initial"}
388
-  (0.1ms) SAVEPOINT active_record_1
389
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
390
-  (0.1ms) RELEASE SAVEPOINT active_record_1
391
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
392
-  (0.1ms) rollback transaction
393
-  (0.3ms) begin transaction
394
- ----------------------------------------------------------------------------
395
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
396
- ----------------------------------------------------------------------------
397
- Processing by Siringa::SiringaController#load as HTML
398
- Parameters: {"definition"=>"papapa"}
399
- Rendered text template (0.0ms)
400
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
401
-  (0.1ms) rollback transaction
402
-  (0.1ms) begin transaction
403
- ----------------------------------------------------------------
404
- SiringaControllerTest: test_load_action_passing_existing_factory
405
- ----------------------------------------------------------------
406
- Processing by Siringa::SiringaController#load as HTML
407
- Parameters: {"definition"=>"initial"}
408
-  (0.1ms) SAVEPOINT active_record_1
409
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
410
-  (0.1ms) RELEASE SAVEPOINT active_record_1
411
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
412
-  (0.1ms) rollback transaction
413
-  (0.3ms) begin transaction
414
- ----------------------------------------------------------------------------
415
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
416
- ----------------------------------------------------------------------------
417
- Processing by Siringa::SiringaController#load as HTML
418
- Parameters: {"definition"=>"papapa"}
419
- Rendered text template (0.0ms)
420
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
421
-  (0.1ms) rollback transaction
422
-  (0.1ms) begin transaction
423
- ----------------------------------------------------------------
424
- SiringaControllerTest: test_load_action_passing_existing_factory
425
- ----------------------------------------------------------------
426
- Processing by Siringa::SiringaController#load as HTML
427
- Parameters: {"definition"=>"initial"}
428
- Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
429
-  (0.1ms) rollback transaction
430
-  (0.3ms) begin transaction
431
- ----------------------------------------------------------------------------
432
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
433
- ----------------------------------------------------------------------------
434
- Processing by Siringa::SiringaController#load as HTML
435
- Parameters: {"definition"=>"papapa"}
436
- Rendered text template (0.0ms)
437
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
438
-  (0.1ms) rollback transaction
439
-  (0.1ms) begin transaction
440
- ----------------------------------------------------------------
441
- SiringaControllerTest: test_load_action_passing_existing_factory
442
- ----------------------------------------------------------------
443
- Processing by Siringa::SiringaController#load as HTML
444
- Parameters: {"definition"=>"initial"}
445
-  (0.1ms) SAVEPOINT active_record_1
446
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
447
-  (0.1ms) RELEASE SAVEPOINT active_record_1
448
- Completed 201 Created in 7ms (Views: 0.3ms | ActiveRecord: 0.5ms)
449
-  (0.1ms) rollback transaction
450
-  (0.3ms) begin transaction
451
- ----------------------------------------------------------------------------
452
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
453
- ----------------------------------------------------------------------------
454
- Processing by Siringa::SiringaController#load as HTML
455
- Parameters: {"definition"=>"papapa"}
456
- Rendered text template (0.0ms)
457
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
458
-  (0.1ms) rollback transaction
459
-  (0.1ms) begin transaction
460
- ----------------------------------------------------------------
461
- SiringaControllerTest: test_load_action_passing_existing_factory
462
- ----------------------------------------------------------------
463
- Processing by Siringa::SiringaController#load as HTML
464
- Parameters: {"definition"=>"initial"}
465
-  (0.1ms) SAVEPOINT active_record_1
466
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
467
-  (0.1ms) RELEASE SAVEPOINT active_record_1
468
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
469
-  (0.1ms) rollback transaction
470
-  (0.3ms) begin transaction
471
- ----------------------------------------------------------------------------
472
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
473
- ----------------------------------------------------------------------------
474
- Processing by Siringa::SiringaController#load as HTML
475
- Parameters: {"definition"=>"papapa"}
476
- Rendered text template (0.0ms)
477
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
478
-  (0.1ms) rollback transaction
479
-  (0.1ms) begin transaction
480
- ----------------------------------------------------------------
481
- SiringaControllerTest: test_load_action_passing_existing_factory
482
- ----------------------------------------------------------------
483
- Processing by Siringa::SiringaController#load as HTML
484
- Parameters: {"definition"=>"initial"}
485
-  (0.1ms) SAVEPOINT active_record_1
486
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
487
-  (0.1ms) RELEASE SAVEPOINT active_record_1
488
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
489
-  (0.1ms) rollback transaction
490
-  (0.3ms) begin transaction
491
- ----------------------------------------------------------------------------
492
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
493
- ----------------------------------------------------------------------------
494
- Processing by Siringa::SiringaController#load as HTML
495
- Parameters: {"definition"=>"papapa"}
496
- Rendered text template (0.0ms)
497
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
498
-  (0.1ms) rollback transaction
499
-  (0.1ms) begin transaction
500
- ----------------------------------------------------------------
501
- SiringaControllerTest: test_load_action_passing_existing_factory
502
- ----------------------------------------------------------------
503
- Processing by Siringa::SiringaController#load as HTML
504
- Parameters: {"definition"=>"initial"}
505
-  (0.1ms) SAVEPOINT active_record_1
506
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
507
-  (0.1ms) RELEASE SAVEPOINT active_record_1
508
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.8ms)
509
-  (0.1ms) rollback transaction
510
-  (0.3ms) begin transaction
511
- ----------------------------------------------------------------------------
512
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
513
- ----------------------------------------------------------------------------
514
- Processing by Siringa::SiringaController#load as HTML
515
- Parameters: {"definition"=>"papapa"}
516
- Rendered text template (0.0ms)
517
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
518
-  (0.1ms) rollback transaction
519
-  (0.1ms) begin transaction
520
- ----------------------------------------------------------------
521
- SiringaControllerTest: test_load_action_passing_existing_factory
522
- ----------------------------------------------------------------
523
- Processing by Siringa::SiringaController#load as HTML
524
- Parameters: {"definition"=>"initial"}
525
-  (0.1ms) SAVEPOINT active_record_1
526
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
527
-  (0.1ms) RELEASE SAVEPOINT active_record_1
528
- Completed 201 Created in 7ms (Views: 0.3ms | ActiveRecord: 0.6ms)
529
-  (0.1ms) rollback transaction
530
-  (0.3ms) begin transaction
531
- ----------------------------------------------------------------------------
532
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
533
- ----------------------------------------------------------------------------
534
- Processing by Siringa::SiringaController#load as HTML
535
- Parameters: {"definition"=>"papapa"}
536
- Rendered text template (0.0ms)
537
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
538
-  (0.1ms) rollback transaction
539
-  (0.1ms) begin transaction
540
- ----------------------------------------------------------------
541
- SiringaControllerTest: test_load_action_passing_existing_factory
542
- ----------------------------------------------------------------
543
- Processing by Siringa::SiringaController#load as HTML
544
- Parameters: {"definition"=>"initial"}
545
- Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
546
-  (0.1ms) rollback transaction
547
-  (0.3ms) begin transaction
548
- ----------------------------------------------------------------------------
549
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
550
- ----------------------------------------------------------------------------
551
- Processing by Siringa::SiringaController#load as HTML
552
- Parameters: {"definition"=>"papapa"}
553
- Rendered text template (0.0ms)
554
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
555
-  (0.3ms) rollback transaction
556
-  (0.2ms) begin transaction
557
- ----------------------------------------------------------------
558
- SiringaControllerTest: test_load_action_passing_existing_factory
559
- ----------------------------------------------------------------
560
- Processing by Siringa::SiringaController#load as HTML
561
- Parameters: {"definition"=>"initial"}
562
- Completed 405 Method Not Allowed in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
563
-  (0.1ms) rollback transaction
564
-  (0.3ms) begin transaction
565
- ----------------------------------------------------------------------------
566
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
567
- ----------------------------------------------------------------------------
568
- Processing by Siringa::SiringaController#load as HTML
569
- Parameters: {"definition"=>"papapa"}
570
- Rendered text template (0.0ms)
571
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
572
-  (0.1ms) rollback transaction
573
-  (0.1ms) begin transaction
574
- ----------------------------------------------------------------
575
- SiringaControllerTest: test_load_action_passing_existing_factory
576
- ----------------------------------------------------------------
577
- Processing by Siringa::SiringaController#load as HTML
578
- Parameters: {"definition"=>"initial"}
579
- Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
580
-  (0.1ms) rollback transaction
581
-  (0.3ms) begin transaction
582
- ----------------------------------------------------------------------------
583
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
584
- ----------------------------------------------------------------------------
585
- Processing by Siringa::SiringaController#load as HTML
586
- Parameters: {"definition"=>"papapa"}
587
- Rendered text template (0.0ms)
588
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
589
-  (0.1ms) rollback transaction
590
-  (0.1ms) begin transaction
591
- ----------------------------------------------------------------
592
- SiringaControllerTest: test_load_action_passing_existing_factory
593
- ----------------------------------------------------------------
594
- Processing by Siringa::SiringaController#load as HTML
595
- Parameters: {"definition"=>"initial"}
596
- Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
597
-  (0.1ms) rollback transaction
598
-  (0.3ms) begin transaction
599
- ----------------------------------------------------------------------------
600
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
601
- ----------------------------------------------------------------------------
602
- Processing by Siringa::SiringaController#load as HTML
603
- Parameters: {"definition"=>"papapa"}
604
- Rendered text template (0.0ms)
605
- Completed 405 Method Not Allowed in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
606
-  (0.1ms) rollback transaction
607
-  (0.1ms) begin transaction
608
- ----------------------------------------------------------------
609
- SiringaControllerTest: test_load_action_passing_existing_factory
610
- ----------------------------------------------------------------
611
- Processing by Siringa::SiringaController#load as HTML
612
- Parameters: {"definition"=>"initial"}
613
- Completed 405 Method Not Allowed in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
614
-  (0.1ms) rollback transaction
615
-  (0.3ms) begin transaction
616
- ----------------------------------------------------------------------------
617
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
618
- ----------------------------------------------------------------------------
619
- Processing by Siringa::SiringaController#load as HTML
620
- Parameters: {"definition"=>"papapa"}
621
- Rendered text template (0.0ms)
622
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
623
-  (0.1ms) rollback transaction
624
-  (0.1ms) begin transaction
625
- ----------------------------------------------------------------
626
- SiringaControllerTest: test_load_action_passing_existing_factory
627
- ----------------------------------------------------------------
628
- Processing by Siringa::SiringaController#load as HTML
629
- Parameters: {"definition"=>"initial"}
630
-  (0.1ms) SAVEPOINT active_record_1
631
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
632
-  (0.1ms) RELEASE SAVEPOINT active_record_1
633
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
634
-  (0.1ms) rollback transaction
635
-  (0.3ms) begin transaction
636
- ----------------------------------------------------------------------------
637
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
638
- ----------------------------------------------------------------------------
639
- Processing by Siringa::SiringaController#load as HTML
640
- Parameters: {"definition"=>"papapa"}
641
- Rendered text template (0.0ms)
642
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
643
-  (0.1ms) rollback transaction
644
-  (0.1ms) begin transaction
645
- ----------------------------------------------------------------
646
- SiringaControllerTest: test_load_action_passing_existing_factory
647
- ----------------------------------------------------------------
648
- Processing by Siringa::SiringaController#load as HTML
649
- Parameters: {"definition"=>"initial"}
650
- Completed 405 Method Not Allowed in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
651
-  (0.1ms) rollback transaction
652
-  (0.3ms) begin transaction
653
- ----------------------------------------------------------------------------
654
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
655
- ----------------------------------------------------------------------------
656
- Processing by Siringa::SiringaController#load as HTML
657
- Parameters: {"definition"=>"papapa"}
658
- Rendered text template (0.0ms)
659
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
660
-  (0.1ms) rollback transaction
661
-  (0.1ms) begin transaction
662
- ----------------------------------------------------------------
663
- SiringaControllerTest: test_load_action_passing_existing_factory
664
- ----------------------------------------------------------------
665
- Processing by Siringa::SiringaController#load as HTML
666
- Parameters: {"definition"=>"initial"}
667
-  (0.1ms) SAVEPOINT active_record_1
668
- SQL (29919.8ms) INSERT INTO "users" DEFAULT VALUES
669
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
670
- Completed 500 Internal Server Error in 29931ms
671
-  (0.2ms) rollback transaction
672
-  (0.3ms) begin transaction
673
- ----------------------------------------------------------------------------
674
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
675
- ----------------------------------------------------------------------------
676
- Processing by Siringa::SiringaController#load as HTML
677
- Parameters: {"definition"=>"papapa"}
678
- Rendered text template (0.0ms)
679
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
680
-  (0.1ms) rollback transaction
681
-  (0.1ms) begin transaction
682
- ----------------------------------------------------------------
683
- SiringaControllerTest: test_load_action_passing_existing_factory
684
- ----------------------------------------------------------------
685
- Processing by Siringa::SiringaController#load as HTML
686
- Parameters: {"definition"=>"initial"}
687
-  (0.1ms) SAVEPOINT active_record_1
688
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
689
-  (0.1ms) RELEASE SAVEPOINT active_record_1
690
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
691
-  (0.1ms) rollback transaction
692
-  (0.3ms) begin transaction
693
- ----------------------------------------------------------------------------
694
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
695
- ----------------------------------------------------------------------------
696
- Processing by Siringa::SiringaController#load as HTML
697
- Parameters: {"definition"=>"papapa"}
698
- Rendered text template (0.0ms)
699
- Completed 405 Method Not Allowed in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
700
-  (0.1ms) rollback transaction
701
-  (0.1ms) begin transaction
702
- ----------------------------------------------------------------
703
- SiringaControllerTest: test_load_action_passing_existing_factory
704
- ----------------------------------------------------------------
705
- Processing by Siringa::SiringaController#load as HTML
706
- Parameters: {"definition"=>"initial"}
707
-  (0.1ms) SAVEPOINT active_record_1
708
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
709
-  (0.1ms) RELEASE SAVEPOINT active_record_1
710
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
711
-  (0.1ms) rollback transaction
712
-  (0.3ms) begin transaction
713
- ----------------------------------------------------------------------------
714
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
715
- ----------------------------------------------------------------------------
716
- Processing by Siringa::SiringaController#load as HTML
717
- Parameters: {"definition"=>"papapa"}
718
- Rendered text template (0.0ms)
719
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
720
-  (0.1ms) rollback transaction
721
-  (0.1ms) begin transaction
722
- ----------------------------------------------------------------
723
- SiringaControllerTest: test_load_action_passing_existing_factory
724
- ----------------------------------------------------------------
725
- Processing by Siringa::SiringaController#load as HTML
726
- Parameters: {"definition"=>"initial"}
727
-  (0.1ms) SAVEPOINT active_record_1
728
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
729
-  (0.1ms) RELEASE SAVEPOINT active_record_1
730
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
731
-  (0.1ms) rollback transaction
732
-  (0.3ms) begin transaction
733
- ----------------------------------------------------------------------------
734
- SiringaControllerTest: test_load_action_passing_a_factory_that_doesn't_exist
735
- ----------------------------------------------------------------------------
736
- Processing by Siringa::SiringaController#load as HTML
737
- Parameters: {"definition"=>"papapa"}
738
- Rendered text template (0.0ms)
739
- Completed 405 Method Not Allowed in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
740
-  (0.1ms) rollback transaction
741
-  (0.1ms) begin transaction
742
- ----------------------------------------------------------------
743
- SiringaControllerTest: test_load_action_passing_existing_factory
744
- ----------------------------------------------------------------
745
- Processing by Siringa::SiringaController#load as HTML
746
- Parameters: {"definition"=>"initial"}
747
-  (0.1ms) SAVEPOINT active_record_1
748
- SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES
749
-  (0.1ms) RELEASE SAVEPOINT active_record_1
750
- Completed 201 Created in 8ms (Views: 0.3ms | ActiveRecord: 0.7ms)
751
-  (0.1ms) rollback transaction