<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Angularjs on New Schematic</title><link>https://newschematic.org/tags/angularjs/</link><description>Recent content in Angularjs on New Schematic</description><generator>Hugo</generator><language>en-us</language><copyright>Christopher Boette, CC by-sa-nc</copyright><lastBuildDate>Fri, 08 Aug 2014 00:45:40 +0000</lastBuildDate><atom:link href="https://newschematic.org/tags/angularjs/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Mock JSON with $httpBackend in Jasmine</title><link>https://newschematic.org/blog/how-to-mock-json-with-httpbackend-in-jasmine/</link><pubDate>Fri, 08 Aug 2014 00:45:40 +0000</pubDate><guid>https://newschematic.org/blog/how-to-mock-json-with-httpbackend-in-jasmine/</guid><description>&lt;p&gt;There is a lot of information out there on running tests for Angular using Jasmine + Karma. One thing that was tripping me up, though, was being able to access a mock JSON file, rather than trying to hit a server with an HTTP request every test.&lt;/p&gt;
&lt;p&gt;Working from this &lt;a href="http://dailyjs.com/2013/05/16/angularjs-5/" target="_blank"&gt;code sample&lt;/a&gt;, I injected the mock file with the &lt;code&gt;beforeEach&lt;/code&gt; call. However, I wasn&amp;rsquo;t able to access the JSON response until I injected the &lt;code&gt;defaultJSON&lt;/code&gt; directly into the specific test:&lt;/p&gt;</description></item><item><title>Mars Attracts!</title><link>https://newschematic.org/projects/mars-attracts/</link><pubDate>Fri, 31 Jan 2014 10:26:11 -0500</pubDate><guid>https://newschematic.org/projects/mars-attracts/</guid><description>&lt;h3 id="book-a-flight-to-mars-not-really"&gt;Book a Flight to Mars! (Not Really)&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://newschematic.org/img/mars.png" alt="Book a Fake Trip to Mars!"&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://marsattracts.herokuapp.com"&gt;project&lt;/a&gt; | &lt;a href="https://github.com/bensbigolbeard/marsattracts"&gt;source code&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;developer, designer&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A speculative fiction flight reservation app set in the near future, facilitating relocation to a newly colonized Mars. Built over 2+ weeks as part of a team of three.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Tech Stack&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Angular.js frontend&lt;/li&gt;
&lt;li&gt;Ruby on Rails backend&lt;/li&gt;
&lt;li&gt;ForecastIO &amp;amp; MAAS Mars Weather APIs&lt;/li&gt;
&lt;li&gt;Foundation &amp;amp; Simple_Form Ruby gems&lt;/li&gt;
&lt;li&gt;Haml &amp;amp; Sass templating&lt;/li&gt;
&lt;li&gt;PostgreSQL database&lt;/li&gt;
&lt;li&gt;Deployed to Heroku&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>