<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec/support/referential.rb, branch 7185-cleanup</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Fix spec/features/calendars_permissions_spec.rb to use correct Workgroup Refs #6258 @1</title>
<updated>2018-03-30T08:22:26+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-03-30T08:22:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=ddf9807fd2e5e0ec26011051f63fda87c6c1f2f6'/>
<id>ddf9807fd2e5e0ec26011051f63fda87c6c1f2f6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5683 @2H; Fix specs and refactor action_links</title>
<updated>2018-01-31T10:39:39+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-31T10:39:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=fe7915ffac359db41c7737a3847f31a728f502e6'/>
<id>fe7915ffac359db41c7737a3847f31a728f502e6</id>
<content type='text'>
Note: Did not fix the missing workgroup in the calendar mailer
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Note: Did not fix the missing workgroup in the calendar mailer
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into 5024-prevent-duplicate-referentials-from-being-created-during-parallel-db-transactions--rb201711271659</title>
<updated>2018-01-03T10:57:42+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-01-03T10:57:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7cce4762c11e7d1e78433f6f88d2e12928c398dc'/>
<id>7cce4762c11e7d1e78433f6f88d2e12928c398dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes: #5281@1.2h;  View specs and minor CR change from #5006</title>
<updated>2017-12-15T07:32:30+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-12-15T07:24:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=443de38df52143f72d97308c28ac68f99e009757'/>
<id>443de38df52143f72d97308c28ac68f99e009757</id>
<content type='text'>
  - CR change from #5006, severity of zip file messages :warning -&gt; :error
  - View specs for showing import_messages
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  - CR change from #5006, severity of zip file messages :warning -&gt; :error
  - View specs for showing import_messages
</pre>
</div>
</content>
</entry>
<entry>
<title>spec/support/referential: Restore old exclusions for truncation</title>
<updated>2017-12-13T17:25:08+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-13T17:25:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d2c0d80c7aaeb61d373f084f13bb007e1f41527e'/>
<id>d2c0d80c7aaeb61d373f084f13bb007e1f41527e</id>
<content type='text'>
Since the tests I was trying to use `truncation` for are now skipped,
remove these exceptions and revert this line back to what it was before
all this mess.

Refs #5024
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the tests I was trying to use `truncation` for are now skipped,
remove these exceptions and revert this line back to what it was before
all this mess.

Refs #5024
</pre>
</div>
</content>
</entry>
<entry>
<title>referential_lock_during_creation_spec: Make truncation strategy stick</title>
<updated>2017-12-13T16:01:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-13T16:01:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=bd8a999b12963b7303500ce93449bb7932afeec3'/>
<id>bd8a999b12963b7303500ce93449bb7932afeec3</id>
<content type='text'>
The `truncation: true` strategy wasn't sticking. The config `before`
block only ran once for this test file. Instead of attaching the filter
to the `it` blocks, put it on the `context`. This correctly gets each
test to run in a transaction.

Remove the `truncation: false` filter I had added previously as this
didn't do what I wanted it to: it prevented the `before` block from
running instead of filtering out tests with `truncation: true`.

Refs #5024
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `truncation: true` strategy wasn't sticking. The config `before`
block only ran once for this test file. Instead of attaching the filter
to the `it` blocks, put it on the `context`. This correctly gets each
test to run in a transaction.

Remove the `truncation: false` filter I had added previously as this
didn't do what I wanted it to: it prevented the `before` block from
running instead of filtering out tests with `truncation: true`.

Refs #5024
</pre>
</div>
</content>
</entry>
<entry>
<title>spec/support/referential: Eliminate data errors in truncation tests</title>
<updated>2017-12-13T15:16:44+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-12-13T15:16:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=985d9a673a79f2b304119999dc76d418225332c7'/>
<id>985d9a673a79f2b304119999dc76d418225332c7</id>
<content type='text'>
After the first `truncation: true` test ran, all tables would be
cleared. This caused errors as our tests rely on a referential like this
existing:

    Referential.create(name: 'first')

It also caused problems with `LineReferential` as the `:chouette_line`
factory depends on an existing `LineReferential` associated to the
`first` Referential.

Add the `referentials` and `line_referentials` tables to the exclusion
list when truncating so these tables don't get cleared and the 'first'
records persist across test runs like before.

To prevent errors trying to unnecessarily switch to the 'first'
referential in `truncation: true` tests, disable that functionality by
adding a filter to exclude these tests from the normal transactional
`before(:each)` config block.

Refs #5024
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After the first `truncation: true` test ran, all tables would be
cleared. This caused errors as our tests rely on a referential like this
existing:

    Referential.create(name: 'first')

It also caused problems with `LineReferential` as the `:chouette_line`
factory depends on an existing `LineReferential` associated to the
`first` Referential.

Add the `referentials` and `line_referentials` tables to the exclusion
list when truncating so these tables don't get cleared and the 'first'
records persist across test runs like before.

To prevent errors trying to unnecessarily switch to the 'first'
referential in `truncation: true` tests, disable that functionality by
adding a filter to exclude these tests from the normal transactional
`before(:each)` config block.

Refs #5024
</pre>
</div>
</content>
</entry>
<entry>
<title>spec/support/referential: Rename `:js` filter to `:truncation`</title>
<updated>2017-11-29T17:29:18+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-11-29T17:29:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef'/>
<id>5fa02104cacdd2fcf6fa5c1ce6477eada0a7e9ef</id>
<content type='text'>
This `before` hook allows tests to use the "truncation" database cleanup
strategy. It doesn't do anything explicitly JavaScript-related. Rather,
it was named JS because it was intended to be used for feature tests
with JavaScript. However, now that I need to use it for a couple tests
in `spec/models/referential_spec.rb`, the `:js` name doesn't make sense.

Rename the filter to something that says what it does, not how it should
be used.

Refs #5024
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This `before` hook allows tests to use the "truncation" database cleanup
strategy. It doesn't do anything explicitly JavaScript-related. Rather,
it was named JS because it was intended to be used for feature tests
with JavaScript. However, now that I need to use it for a couple tests
in `spec/models/referential_spec.rb`, the `:js` name doesn't make sense.

Rename the filter to something that says what it does, not how it should
be used.

Refs #5024
</pre>
</div>
</content>
</entry>
<entry>
<title>Change the way we name classes</title>
<updated>2017-11-21T14:32:22+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2017-11-21T14:32:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=763010ced3202c99f705562a373861f926aad9a1'/>
<id>763010ced3202c99f705562a373861f926aad9a1</id>
<content type='text'>
We now always use modules for namespaces
=&gt; same structure for models, decorators, policies...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now always use modules for namespaces
=&gt; same structure for models, decorators, policies...
</pre>
</div>
</content>
</entry>
<entry>
<title>spec/support/referential.rb: Use factories</title>
<updated>2017-09-27T10:54:53+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-09-27T10:54:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d1bd434d78972d4f4156f3e3e864e075cad9e62d'/>
<id>d1bd434d78972d4f4156f3e3e864e075cad9e62d</id>
<content type='text'>
Instead of creating the objects directly in ActiveRecord, use our
existing factories for these records as suggested by Robert.

Refs #3520
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of creating the objects directly in ActiveRecord, use our
existing factories for these records as suggested by Robert.

Refs #3520
</pre>
</div>
</content>
</entry>
</feed>
