<?xml version="1.0"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:dcterms="http://purl.org/dc/terms/"
     xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tyler Cipriani: pages tagged ruby</title>
<link>https://tylercipriani.com/tags/ruby/</link>
<atom:link href="https://tylercipriani.com/tags/ruby/index.rss" rel="self" type="application/rss+xml"/>

<description>Tyler Cipriani</description>
<generator>ikiwiki</generator>
<pubDate>Tue, 14 Feb 2017 15:11:05 +0000</pubDate>
<item>
	<title>Cucumber tests getting started</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2015/05/27/ruby-test-notes/</guid>

	<link>https://tylercipriani.com/blog/2015/05/27/ruby-test-notes/</link>

	<dc:creator>Tyler Cipriani</dc:creator>



	<category>computing</category>

	<category>notes</category>

	<category>ruby</category>


	<pubDate>Wed, 27 May 2015 15:09:45 +0000</pubDate>
	<dcterms:modified>2017-02-14T15:11:05Z</dcterms:modified>


	<description>&lt;p&gt;&lt;a href=&quot;https://gorails.com/setup/ubuntu/14.04&quot;&gt;https://gorails.com/setup/ubuntu/14.04&lt;/a&gt;&lt;/p&gt;
&lt;section id=&quot;check-setup&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Check setup &lt;a href=&quot;https://tylercipriani.com/tags/ruby/#check-setup&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;ruby -v&lt;/li&gt;
&lt;li&gt;gem list selenium&lt;/li&gt;
&lt;li&gt;gem install selenium-webdriver&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;IRB&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id=&quot;ruby-install&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Ruby install &lt;a href=&quot;https://tylercipriani.com/tags/ruby/#ruby-install&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb1&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-1&quot; title=&quot;1&quot;&gt;❯ &lt;span class=&quot;ex&quot;&gt;curl&lt;/span&gt; -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt &lt;span class=&quot;kw&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;kw&quot;&gt;\&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-2&quot; title=&quot;2&quot;&gt;  &lt;span class=&quot;ex&quot;&gt;rbenv&lt;/span&gt; install --patch 2.2.3&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;ex&quot;&gt;6m&lt;/span&gt; 50s&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-4&quot; title=&quot;4&quot;&gt;❯ &lt;span class=&quot;ex&quot;&gt;rbenv&lt;/span&gt; global 2.2.2&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-5&quot; title=&quot;5&quot;&gt;&lt;span class=&quot;ex&quot;&gt;~&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-6&quot; title=&quot;6&quot;&gt;❯ &lt;span class=&quot;ex&quot;&gt;ruby&lt;/span&gt; -v&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-7&quot; title=&quot;7&quot;&gt;&lt;span class=&quot;ex&quot;&gt;ruby&lt;/span&gt; 2.2.2p95 (2015-04-13 revision 50295) [&lt;span class=&quot;ex&quot;&gt;x86_64-linux&lt;/span&gt;]&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-8&quot; title=&quot;8&quot;&gt;&lt;span class=&quot;ex&quot;&gt;~&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-9&quot; title=&quot;9&quot;&gt;❯ &lt;span class=&quot;bu&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;quot;gem: --no-ri --no-rdoc&amp;quot;&lt;/span&gt; &lt;span class=&quot;op&quot;&gt;&amp;gt;&lt;/span&gt; ~/.gemrc&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-10&quot; title=&quot;10&quot;&gt;&lt;span class=&quot;ex&quot;&gt;~&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;selenium-webdriver&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Selenium webdriver &lt;a href=&quot;https://tylercipriani.com/tags/ruby/#selenium-webdriver&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;require &quot;selenium-webdriver&quot; &lt;a href=&quot;https://code.google.com/p/selenium/wiki/RubyBindings&quot;&gt;https://code.google.com/p/selenium/wiki/RubyBindings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;driver.class &lt;a href=&quot;http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Driver&quot;&gt;http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Driver&lt;/a&gt;&lt;/p&gt;
&lt;/section&gt;
&lt;section id=&quot;core-tests&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Core tests &lt;a href=&quot;https://tylercipriani.com/tags/ruby/#core-tests&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;[mw-core]/tests/browser/features/create_account.feature&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb2&quot;&gt;&lt;pre class=&quot;sourceCode ruby&quot;&gt;&lt;code class=&quot;sourceCode ruby&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;dt&quot;&gt;Schenario&lt;/span&gt; &lt;span class=&quot;dt&quot;&gt;Outline&lt;/span&gt; can be passed variable&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-2&quot; title=&quot;2&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;dt&quot;&gt;Scenario&lt;/span&gt;: [&lt;span class=&quot;dt&quot;&gt;English&lt;/span&gt; text] &lt;span class=&quot;co&quot;&gt;# Just a comment, nothing is parsed&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-4&quot; title=&quot;4&quot;&gt;&lt;span class=&quot;dt&quot;&gt;Given&lt;/span&gt; [this thing] &lt;span class=&quot;co&quot;&gt;# Sets up the test&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-5&quot; title=&quot;5&quot;&gt;&lt;span class=&quot;dt&quot;&gt;When&lt;/span&gt; [other thing] &lt;span class=&quot;co&quot;&gt;# Action that is part of the test&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-6&quot; title=&quot;6&quot;&gt;&lt;span class=&quot;dt&quot;&gt;And&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-7&quot; title=&quot;7&quot;&gt;&lt;span class=&quot;dt&quot;&gt;But&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;bundler&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Bundler &lt;a href=&quot;https://tylercipriani.com/tags/ruby/#bundler&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb3&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb3-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;bu&quot;&gt;cd&lt;/span&gt; [mwcore]/tests/browser&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb3-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;bundle&lt;/span&gt; install&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb3-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;bundle&lt;/span&gt; exec cucumber features/create_account.feature:14&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;important&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Important &lt;a href=&quot;https://tylercipriani.com/tags/ruby/#important&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb4&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;bu&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;va&quot;&gt;BROWSER=&lt;/span&gt;firefox&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;bu&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;va&quot;&gt;MEDIAWIKI_ENVIRONMENT=&lt;/span&gt;mw-vagrant-host&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
</description>


	<comments>//tylercipriani.com/blog/2015/05/27/ruby-test-notes/#comments</comments>

</item>

</channel>
</rss>
