<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec/views/lines, branch developer-toolbar</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Refs #5430 @2h; Deactivate lines instead of destroying them</title>
<updated>2017-12-21T20:19:27+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2017-12-20T11:58:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9a34cb48f49df574ae1e7c599713ed246e2938cf'/>
<id>9a34cb48f49df574ae1e7c599713ed246e2938cf</id>
<content type='text'>
- Add `activate` and `deactivate` actions in `LinesController`, as well
as corresponding routes
- Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well
as `activated?`
- Add `activate?` and `deactivate?` permissions in `LinePolicy`
- Add corresponding `action_links`in the Decorator
- Create helper for these actions
- Add an optional `'extra_class` to the Links
- Update styles for ".delete-action" to handle the case where there are
several
- Add I18n keys accordingly
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Add `activate` and `deactivate` actions in `LinesController`, as well
as corresponding routes
- Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well
as `activated?`
- Add `activate?` and `deactivate?` permissions in `LinePolicy`
- Add corresponding `action_links`in the Decorator
- Create helper for these actions
- Add an optional `'extra_class` to the Links
- Update styles for ".delete-action" to handle the case where there are
several
- Add I18n keys accordingly
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove page title test on views spec</title>
<updated>2017-11-28T11:23:38+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2017-11-24T16:52:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9a313f95785a55788af54a46bf1f846b74c16c54'/>
<id>9a313f95785a55788af54a46bf1f846b74c16c54</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lines/show.html.erb_spec.rb: Fix specs resulting from `LineDecorator`</title>
<updated>2017-06-19T16:40:09+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-19T16:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=140270297b1db064b78472ccd7e59b8279d21be7'/>
<id>140270297b1db064b78472ccd7e59b8279d21be7</id>
<content type='text'>
The tests failed because we weren't using a decorated `Chouette::Line`
object, but the views now expect decorated lines in order to be able to
call the `#action_links` method.

Here are our failures:

    5) /lines/show should render h1 with the line name
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

    6) /lines/show should render a link to remove the line
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:31:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

Update the test to decorate the lines used in them.

Turn `current_organisation` into a `context` field on `LineDecorator`
because otherwise it's a global variable that comes from wherever that's
required in `LineDecorator`. And we'd have to mock
`current_organisation` on `line` in the test, which I wasn't keen on.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests failed because we weren't using a decorated `Chouette::Line`
object, but the views now expect decorated lines in order to be able to
call the `#action_links` method.

Here are our failures:

    5) /lines/show should render h1 with the line name
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

    6) /lines/show should render a link to remove the line
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:31:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

Update the test to decorate the lines used in them.

Turn `current_organisation` into a `context` field on `LineDecorator`
because otherwise it's a global variable that comes from wherever that's
required in `LineDecorator`. And we'd have to mock
`current_organisation` on `line` in the test, which I wasn't keen on.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecation Warnings removed; Seeds corrected, Refs: #2070</title>
<updated>2017-04-11T13:40:26+00:00</updated>
<author>
<name>RobertDober</name>
</author>
<published>2017-04-10T09:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7b9370d10a2d67b83610b8cf8b876734972c2ee9'/>
<id>7b9370d10a2d67b83610b8cf8b876734972c2ee9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix tests</title>
<updated>2017-02-17T14:18:47+00:00</updated>
<author>
<name>jpl</name>
</author>
<published>2017-02-17T14:18:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e1e65b2a850c00e7537dfc58ad43b0ade8ebee21'/>
<id>e1e65b2a850c00e7537dfc58ad43b0ade8ebee21</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #2476 : Disable modification and deletion of resources from another referential; in progress</title>
<updated>2017-02-07T10:25:29+00:00</updated>
<author>
<name>Vlatka Pavisic</name>
</author>
<published>2017-02-06T10:42:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d94b1271d147fdb5bbd1e616e116173198e858db'/>
<id>d94b1271d147fdb5bbd1e616e116173198e858db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #2019: updating lines with table builder</title>
<updated>2016-11-29T17:17:42+00:00</updated>
<author>
<name>jpl</name>
</author>
<published>2016-11-29T17:17:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=b0fc4c2a5b23fe9546ae93164a965915860a43ba'/>
<id>b0fc4c2a5b23fe9546ae93164a965915860a43ba</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #2018 : Rm links to edit ReferentialLine</title>
<updated>2016-11-28T09:58:24+00:00</updated>
<author>
<name>vlatka pavisic</name>
</author>
<published>2016-11-22T16:31:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5bd3973fae2c1e02c2bef31d5b12dc10b1a133c9'/>
<id>5bd3973fae2c1e02c2bef31d5b12dc10b1a133c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Associate LineReferential to Referential. Create ReferentialLines to manage lines in Referential. Refs #826</title>
<updated>2016-05-15T07:22:06+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2016-05-15T07:22:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=affbacfcd955230f66badb261dcc462cca9cd0b9'/>
<id>affbacfcd955230f66badb261dcc462cca9cd0b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor models and controllers to manage Lines in LineReferential. Refs #825</title>
<updated>2016-05-13T09:56:54+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2016-05-13T09:56:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=6e28e49262ede9c57a6c5726570a4921f4b63d04'/>
<id>6e28e49262ede9c57a6c5726570a4921f4b63d04</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
