224 Commits

Author SHA1 Message Date
Kenji Okimoto
39061fe38e
Add missing require
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-19 14:12:02 +09:00
Kenji Okimoto
12e2b09a8e
Skip validation failure
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:10:17 +09:00
Kenji Okimoto
7b25c797ea
Remove buffer path assertion and secondary type assertion
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:09:21 +09:00
Kenji Okimoto
fdf5619fd7 Use DummyLogger
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:01:37 +09:00
Kenji Okimoto
7b0f2b1890 Use JavaScript
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:01:37 +09:00
Kenji Okimoto
48d0fb7e5c Fix element selector
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:01:37 +09:00
Kenji Okimoto
a570aa3181 Use JavaScript
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:01:37 +09:00
Kenji Okimoto
57351ec7b3 Skip some specs using accept_confirm
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-07-09 17:01:37 +09:00
Kenji Okimoto
4646b6363d
Update spec
We must use `type` instead of `@type` to initialize model.
Because we cannot define `@type` expected.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-25 18:08:47 +09:00
Kenji Okimoto
d8213f713b
Use type instead of @type
Because `@type` is not defined in model.
So we must convert name `type` to `@type` or `@type` to `type` at the boundary
between the model and parameters.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 15:42:23 +09:00
Kenji Okimoto
2a01337ebd
Enable JavaScript
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 15:30:25 +09:00
Kenji Okimoto
3a2835429a
Add initial_params
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 15:26:50 +09:00
Kenji Okimoto
fe424e9743
Use localhost instead of non-existent host
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 11:26:46 +09:00
Kenji Okimoto
66f5d8424f
Update specs to follow changes related to validation
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-21 11:20:13 +09:00
Kenji Okimoto
9820e5a7f6 Follow view chagens
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-20 18:30:55 +09:00
Kenji Okimoto
20da19e85a
Fix in_forward spec
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-20 17:27:19 +09:00
Kenji Okimoto
b0e212e4a8
Remove redundant configuration
The default value of auto_create_table is true.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-20 16:06:52 +09:00
Kenji Okimoto
81be7792bd
Rewrite RegexpPreview::MultiLine using Fluentd's parser plugin
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-14 15:33:52 +09:00
Kenji Okimoto
38d4fba7e5
Rewrite RegexpPreview::SingleLine using Fluentd's parser plugin instance
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-14 14:21:09 +09:00
Kenji Okimoto
ea61957bce
Use Pattern instead of Match
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-28 15:11:03 +09:00
Kenji Okimoto
8e11483adf
Use pattern instead of match
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-28 14:59:44 +09:00
Kenji Okimoto
a849fdeda3
Remove unused module
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-28 11:13:13 +09:00
Kenji Okimoto
1bde0bae1c Rename out_td to out_tdlog
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-24 18:35:29 +09:00
Kenji Okimoto
03a5d86f8c
Add specs for previous change
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-24 18:28:11 +09:00
Kenji Okimoto
6b2621cb3c
Update to fluentd v1.2.0
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-22 10:24:56 +09:00
Kenji Okimoto
ecd40a81f4 Support reloading Fluentd/td-agent
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-22 10:13:28 +09:00
Kenji Okimoto
1c1be7bfc7 Use new plugin API for parser plugins
This commit will fail after release Fluentd v1.2.0.
Because new version of Fluentd will update the regular expression of
some plugins.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-22 10:00:42 +09:00
Kenji Okimoto
ca76a1e6f9 Suppress deprecation warning
> DEPRECATION WARNING: The success? predicate is deprecated and will
> be removed in Rails 6.0. Please use successful? as provided by
> Rack::Response::Helpers.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-21 17:43:52 +09:00
Kenji Okimoto
0b7cd61a09 Try using accept_confirm and dismiss_confirm
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-21 16:15:16 +09:00
Kenji Okimoto
d89bccef98
Use bootstrap4 style
panel -> card

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-18 15:46:21 +09:00
Kenji Okimoto
88adfb800a Stub dryrun method for the environment does not have td-agent
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
a279b82078 Update spec
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
d02e1bac38 Use headless chrome
Update following gems:

* capybara to 3.0.2
* capybara-screenshot to 1.0.19
* remove poltergeist
* add selenium-webdriver

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
56452b211b Remove unnecessary stubs
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
8468beb39c Use new keyword style to suppress deprecation warnings
> DEPRECATION WARNING: Using positional arguments in functional tests has been deprecated,
> in favor of keyword arguments, and will be removed in Rails 5.1.
>
> Deprecated style:
> get :show, { id: 1 }, nil, { notice: "This is a flash message" }
>
> New keyword style:
> get :show, params: { id: 1 }, flash: { notice: "This is a flash message" },
>   session: nil # Can safely be omitted.

> DEPRECATION WARNING: Using positional arguments in functional tests has been deprecated,
> in favor of keyword arguments, and will be removed in Rails 5.1.
>
> Deprecated style:
> get :show, { id: 1 }, nil, { notice: "This is a flash message" }
>
> New keyword style:
> get :show, params: { id: 1 }, flash: { notice: "This is a flash message" },
>   session: nil # Can safely be omitted.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
fe4dd681b6 Fix render option to suppress deprecation warning
> DEPRECATION WARNING: `render :text` is deprecated because it does not
> actually render a `text/plain` response. Switch to `render plain:
> 'plain text'` to render as `text/plain`, `render html:
> '<strong>HTML</strong>'` to render as `text/html`, or `render body:
> 'raw'` to match the deprecated behavior and render with the default
> Content-Type, which is `text/html`.

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
6c22e1b5c2 Fix deprecation warnings
> DEPRECATION WARNING: ActiveModel::Errors#get is deprecated and will be
> removed in Rails 5.1. To achieve the same use
> model.errors[:config_file].

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
0afc17c00a Follow changes in previous commit
FactoryGirl ->
FactoryBot

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-20 16:52:14 +09:00
Kenji Okimoto
79ae3e5fa5 Fix specs to follow changes Fluentd (0.12.35 -> 0.12.43) update
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-04-18 14:31:58 +09:00
uu59
902a488746 cosme: Remove unnecessary {} 2016-12-12 18:05:04 +09:00
uu59
8e39168288 cosme: Use newer Hash syntax 2016-12-12 18:05:02 +09:00
uu59
33656e29f4 Fix #208 for multiline preview 2016-12-09 16:18:28 +09:00
uu59
287e79a360 Move to Travis CI 2015-11-30 14:23:24 +09:00
uu59
9002b11926 Remove needless --use-v1-config option 2015-11-30 11:45:10 +09:00
yoshihara
78573665a1 spec: use more proper time_format Regexp 2015-04-23 15:29:17 +09:00
yoshihara
16c04d986a spec: Use more Regexp-like expression 2015-04-23 15:20:31 +09:00
yoshihara
5e1627ca6f Use more meaningful variable name
tmp    ->
params
2015-04-23 14:59:51 +09:00
yoshihara
4c3ca85cd9 spec: add specs for RegexpPreview::MultiLine 2015-04-21 18:41:02 +09:00
yoshihara
5cd1515336 spec: add specs for RegexpPreview::SingleLine 2015-04-21 18:41:02 +09:00
yoshihara
602e076960 Add more expectation to User#valid? specs 2015-04-08 19:05:36 +09:00