snipt

Ctrl+h for KB shortcuts

Ruby

Rails test stuff

1
2
3
4
5
6
7
8
gem 'rspec-rails', :group => [:development, :test]

group :test do
  gem 'capybara'
  gem 'guard-rspec'
  gem 'rb-fsevent'
  gem 'growl'
end
https://snipt.net/embed/74b39b025f9ac25008df744daf1c24de/
https://snipt.net/raw/74b39b025f9ac25008df744daf1c24de/
74b39b025f9ac25008df744daf1c24de
rb
Ruby
8
2016-09-26T14:58:05
True
False
False
/api/public/snipt/34347/
rails-test-stuff
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="n">gem</span> <span class="s1">&#39;rspec-rails&#39;</span><span class="p">,</span> <span class="ss">:group</span> <span class="o">=&gt;</span> <span class="o">[</span><span class="ss">:development</span><span class="p">,</span> <span class="ss">:test</span><span class="o">]</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="n">group</span> <span class="ss">:test</span> <span class="k">do</span> </span><span id="L-4"><a name="L-4"></a> <span class="n">gem</span> <span class="s1">&#39;capybara&#39;</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">gem</span> <span class="s1">&#39;guard-rspec&#39;</span> </span><span id="L-6"><a name="L-6"></a> <span class="n">gem</span> <span class="s1">&#39;rb-fsevent&#39;</span> </span><span id="L-7"><a name="L-7"></a> <span class="n">gem</span> <span class="s1">&#39;growl&#39;</span> </span><span id="L-8"><a name="L-8"></a><span class="k">end</span> </span></pre></div> </td></tr></table>
rails, rspec, tdd

Java

Check junit version in classpath

1
2
3
4
static {
        System.out.println("--" + junit.runner.Version.id());
        System.out.println(System.getProperty("java.class.path"));
    }
https://snipt.net/embed/5450a2925b27370c4552ce33f8f0419a/
https://snipt.net/raw/5450a2925b27370c4552ce33f8f0419a/
5450a2925b27370c4552ce33f8f0419a
java
Java
4
2016-09-21T10:58:26
True
False
False
/api/public/snipt/30017/
check-junit-version-in-classpath
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="kd">static</span> <span class="o">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">&quot;--&quot;</span> <span class="o">+</span> <span class="n">junit</span><span class="o">.</span><span class="na">runner</span><span class="o">.</span><span class="na">Version</span><span class="o">.</span><span class="na">id</span><span class="o">());</span> </span><span id="L-3"><a name="L-3"></a> <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="n">System</span><span class="o">.</span><span class="na">getProperty</span><span class="o">(</span><span class="s">&quot;java.class.path&quot;</span><span class="o">));</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">}</span> </span></pre></div> </td></tr></table>
java, junit, tdd
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.