Commit Graph

205 Commits

Author SHA1 Message Date
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
yoshihara
a231335159 spec: Use more specialized method
I want to remove a file only, not directory.
2015-04-08 18:58:07 +09:00
yoshihara
c3d18ffe1d spec: add expectations for password changed to feature specs 2015-04-08 18:56:11 +09:00
yoshihara
2f8561a071 spec: Clarify password lengths 2015-04-08 18:46:04 +09:00
yoshihara
d6d7aa0b9b Use buton value instead of type to nallow target 2015-04-08 18:41:53 +09:00
yoshihara
d5e0dd3026 Use more meaningful description 2015-04-08 18:41:01 +09:00
yoshihara
8567315956 spec: add specs for User#valid? 2015-04-08 17:40:36 +09:00
yoshihara
7e8a9f154d spec: use subject 2015-04-08 17:40:36 +09:00
yoshihara
d1f7e7271a spec: Extract variables by let 2015-04-08 17:40:36 +09:00
yoshihara
886c8be8e1 Fix the broken model spec
Before, validated user is invalid, but other validations cause (length,
and wrong current_password)
2015-04-08 17:40:36 +09:00
yoshihara
2e2f4f66e8 Fix the bug that password is changed unexpectedly when confirm is wrong
model spec is broken, so i fix it.
2015-04-08 17:40:36 +09:00
yoshihara
b94d362125 Wrap the unlogined spec with new description
To distingish specs for logined user with the less indent.
2015-04-08 13:54:50 +09:00
yoshihara
daa7685b08 Remove rspec-its requiring 2015-04-02 16:15:02 +09:00
yoshihara
acef07e036 Remove its syntax depended on 'rspec-its' gem 2015-04-02 16:09:07 +09:00
uu59
92d026bdaa Use more proper description 2015-04-02 12:59:49 +09:00
uu59
aaf4f179ab Fix to parse config with embedded code 2015-04-02 12:50:38 +09:00
uu59
8ac4cb9526 Fix configtest didn't catch syntax error 2015-04-02 11:35:58 +09:00
uu59
7c66152233 Add magic comment for 1.9.3 2015-02-10 15:59:17 +09:00
uu59
68d3a87b79 Add spec and fixes 2015-02-10 15:50:41 +09:00
uu59
b5d4be2659 Fluentd::Agent::Log is now dependent class. Use composite 2015-02-10 14:58:54 +09:00