diff options
| author | Robert | 2017-07-04 15:01:12 +0200 | 
|---|---|---|
| committer | Robert | 2017-07-04 21:54:04 +0200 | 
| commit | cce302f6ea2252deb09973c8df8842c50349eb79 (patch) | |
| tree | 88568009b7ac9e2e11237ee5b38de52fe8994e78 /spec | |
| parent | c48ad4fde3056ef04645b73f7eab54ff867d370c (diff) | |
| download | chouette-core-cce302f6ea2252deb09973c8df8842c50349eb79.tar.bz2 | |
Refs: #3478@1h; adapted table builder spex
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/decorators/company_decorator_spec.rb | 2 | ||||
| -rw-r--r-- | spec/helpers/table_builder_helper_spec.rb | 5 | 
2 files changed, 3 insertions, 4 deletions
| diff --git a/spec/decorators/company_decorator_spec.rb b/spec/decorators/company_decorator_spec.rb index 42ed6a408..a1df03449 100644 --- a/spec/decorators/company_decorator_spec.rb +++ b/spec/decorators/company_decorator_spec.rb @@ -1,4 +1,2 @@ -require 'spec_helper' -  describe CompanyDecorator do  end diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb index 67980fc2c..6d7b60366 100644 --- a/spec/helpers/table_builder_helper_spec.rb +++ b/spec/helpers/table_builder_helper_spec.rb @@ -17,7 +17,7 @@ describe TableBuilderHelper, type: :helper do            permissions: [              'referentials.create',              'referentials.edit', -            'referentials.destroy' +            'referentials.destroy',            ]          ),          referential: referential @@ -299,7 +299,8 @@ describe TableBuilderHelper, type: :helper do        companies = ModelDecorator.decorate(          companies, -        with: CompanyDecorator +        with: CompanyDecorator, +        context: {line_referential: line_referential}        )        expected = <<-HTML | 
