<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pivotal Labs &#187; sqllite</title>
	<atom:link href="http://pivotallabs.com/tag/sqllite/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Wed, 19 Jun 2013 22:16:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>iFrame you frame&#8230;</title>
		<link>http://pivotallabs.com/iframe-you-frame/</link>
		<comments>http://pivotallabs.com/iframe-you-frame/#comments</comments>
		<pubDate>Tue, 05 Feb 2013 17:24:57 +0000</pubDate>
		<dc:creator>George Dean</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[capybara]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[mediaquery]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[sqllite]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/?p=15045</guid>
		<description><![CDATA[<p>Helps undefined method `fields&#39; for nil We keep getting this error across multiple projects &#38; machines, with different versions of the pg gem and the PostgreSQL server, with varying consistency. Switching the tests to sqlite seems to fix it. Failure/Error: Unable to find matching line from backtrace ActiveRecord::StatementInvalid: NoMethodError: undefined method `fields&#39; for nil:NilClass: SELECT &#34;locations&#34;.* FROM &#34;locations&#34; WHERE &#34;locations&#34;.&#34;id&#34; IN (11, 10, 5, 4, 1, 3, 2) It appears that PG::Connection#async_exec is returning nil for some queries. It was suggested to add a &#34;fields&#34; method for the nil class. Interestings Homebrew is Kickstarting an automated test bot http://www.kickstarter.com/projects/homebrew/brew-test-bot £50 to get a pair of pint glasses&#8230; Resizing the window to test media queries If you want to test your media query css as part of your acceptance suite, you can just ask Capybara to resize the firefox window. Don&#39;t use the iframe to do this, because it will be&#8230;</p><p>The post <a href="http://pivotallabs.com/iframe-you-frame/">iFrame you frame&#8230;</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Helps</h2>
<h3>undefined method `fields&#39; for nil</h3>
<p>We keep getting this error across multiple projects &amp; machines, with different versions of the pg gem and the PostgreSQL server, with varying consistency. Switching the tests to sqlite seems to fix it.</p>
<pre><code>Failure/Error: Unable to find matching line from backtrace
ActiveRecord::StatementInvalid:
  NoMethodError: undefined method `fields&#39; for nil:NilClass: SELECT &quot;locations&quot;.* FROM &quot;locations&quot;  WHERE &quot;locations&quot;.&quot;id&quot; IN (11, 10, 5, 4, 1, 3, 2)
</code></pre>
<p>It appears that PG::Connection#async_exec is returning nil for some queries.</p>
<p>It was suggested to add a &quot;fields&quot; method for the nil class.</p>
<h2>Interestings</h2>
<h3>Homebrew is Kickstarting an automated test bot</h3>
<p><a href="http://www.kickstarter.com/projects/homebrew/brew-test-bot">http://www.kickstarter.com/projects/homebrew/brew-test-bot</a> £50 to get a pair of pint glasses&#8230;</p>
<h3>Resizing the window to test media queries</h3>
<p>If you want to test your media query css as part of your acceptance suite, you can just ask Capybara to resize the firefox window.<br />
Don&#39;t use the iframe to do this, because it will be buggy. Note you will need to use min/max-width not min/max-device-width when defining your media queries. Otherwise resizing the browser window will not trigger the media query.</p>
<p>Capybara.current_session.driver.browser.manage.window.resize_to(width, height)<br />
Capybara.current_session.driver.browser.manage.window.position = Struct.new(:x, :y).new(session_name == :default ? 0 : width, 0)</p>
<p>Thanks to Ryan for the tip.</p>
<p>The post <a href="http://pivotallabs.com/iframe-you-frame/">iFrame you frame&#8230;</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/iframe-you-frame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using apc
Database Caching 1/11 queries in 0.009 seconds using apc
Object Caching 403/423 objects using apc

 Served from: pivotallabs.com @ 2013-06-19 19:07:21 by W3 Total Cache -->