-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
233 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
<img src="./assets/0.12.1/loading.gif" alt="loading"/> | ||
</div> | ||
<div id="wrapper" class="hide"> | ||
<div class="timestamp">Generated <abbr class="timeago" title="2020-02-27T00:12:58+00:00">2020-02-27T00:12:58+00:00</abbr></div> | ||
<div class="timestamp">Generated <abbr class="timeago" title="2020-02-27T09:45:37+00:00">2020-02-27T09:45:37+00:00</abbr></div> | ||
<ul class="group_tabs"></ul> | ||
|
||
<div id="content"> | ||
|
@@ -39,12 +39,12 @@ <h2> | |
<a name="AllFiles"></a> | ||
|
||
<div> | ||
<b>7</b> files in total. | ||
<b>8</b> files in total. | ||
</div> | ||
|
||
<div class="t-line-summary"> | ||
<b>76</b> relevant lines, | ||
<span class="green"><b>76</b> lines covered</span> and | ||
<b>86</b> relevant lines, | ||
<span class="green"><b>86</b> lines covered</span> and | ||
<span class="red"><b>0</b> lines missed. </span> | ||
(<span class="green"> | ||
100.0% | ||
|
@@ -81,6 +81,17 @@ <h2> | |
|
||
</tr> | ||
|
||
<tr class="t-file"> | ||
<td class="strong t-file__name"><a href="#e569cdd3468d9e2d60ee3a83c825219a110924ae" class="src_link" title="spec/features/logging_out_spec.rb">spec/features/logging_out_spec.rb</a></td> | ||
<td class="green strong cell--number t-file__coverage">100.00 %</td> | ||
<td class="cell--number">13</td> | ||
<td class="cell--number">10</td> | ||
<td class="cell--number">10</td> | ||
<td class="cell--number">0</td> | ||
<td class="cell--number">1.00</td> | ||
|
||
</tr> | ||
|
||
<tr class="t-file"> | ||
<td class="strong t-file__name"><a href="#a9ebcad501d01cffed9f2e5ca01d128572368ba4" class="src_link" title="spec/features/logging_page_spec.rb">spec/features/logging_page_spec.rb</a></td> | ||
<td class="green strong cell--number t-file__coverage">100.00 %</td> | ||
|
@@ -316,6 +327,180 @@ <h4> | |
</div> | ||
|
||
|
||
<div class="source_table" id="e569cdd3468d9e2d60ee3a83c825219a110924ae"> | ||
<div class="header"> | ||
<h3>spec/features/logging_out_spec.rb</h3> | ||
<h4> | ||
<span class="green"> | ||
100.0% | ||
</span> | ||
|
||
lines covered | ||
</h4> | ||
|
||
|
||
|
||
<div class="t-line-summary"> | ||
<b>10</b> relevant lines. | ||
<span class="green"><b>10</b> lines covered</span> and | ||
<span class="red"><b>0</b> lines missed.</span> | ||
</div> | ||
|
||
|
||
|
||
</div> | ||
|
||
<pre> | ||
<ol> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="1"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby">feature 'logging out' do</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="2"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> scenario 'a user can log out' do</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="3"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> User.create(name: 'Jiminy cricket', email: '[email protected]', password: 'pinocchio')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="4"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> visit('/sessions/new')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="5"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> expect(current_path).to eq('/sessions/new')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="6"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> fill_in('email', with: '[email protected]')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="7"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> fill_in('password', with: 'pinocchio')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="8"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> click_button('Submit')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="9"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> click_button('Sign out')</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="covered" data-hits="1" data-linenumber="10"> | ||
<span class="hits">1</span> | ||
|
||
|
||
|
||
|
||
<code class="ruby"> expect(page).to have_content('You have successfully signed out') </code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="never" data-hits="" data-linenumber="11"> | ||
|
||
|
||
|
||
|
||
|
||
<code class="ruby"> end</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="never" data-hits="" data-linenumber="12"> | ||
|
||
|
||
|
||
|
||
|
||
<code class="ruby">end</code> | ||
</li> | ||
</div> | ||
|
||
<div> | ||
<li class="never" data-hits="" data-linenumber="13"> | ||
|
||
|
||
|
||
|
||
|
||
<code class="ruby"></code> | ||
</li> | ||
</div> | ||
|
||
</ol> | ||
</pre> | ||
</div> | ||
|
||
|
||
<div class="source_table" id="a9ebcad501d01cffed9f2e5ca01d128572368ba4"> | ||
<div class="header"> | ||
<h3>spec/features/logging_page_spec.rb</h3> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
feature 'logging out' do | ||
scenario 'a user can log out' do | ||
User.create(name: 'Jiminy cricket', email: '[email protected]', password: 'pinocchio') | ||
visit('/sessions/new') | ||
expect(current_path).to eq('/sessions/new') | ||
fill_in('email', with: '[email protected]') | ||
fill_in('password', with: 'pinocchio') | ||
click_button('Submit') | ||
click_button('Sign out') | ||
expect(page).to have_content('You have successfully signed out') | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters