From 91d1a681a4a33ff710260f1fcd6e3b9250248ab4 Mon Sep 17 00:00:00 2001
From: Todd Jordan The Super Rentals website is a delightful project created to explore Ember.
+ The Super Rentals website is a delightful project created to explore Ember.
+ By building a property rental site, we can simultaneously imagine traveling
+ AND building Ember applications.
+ Owner: {{rental.owner}} Type: {{rental-property-type rental.type}} - {{rental.type}} Location: {{rental.city}} Number of bedrooms: {{rental.bedrooms}}
- Super Rentals Representatives would love to help you choose a destination or answer
-any questions you may have. Contact us today:
- Super Rentals HQ
- About Super Rentals
-
-
- By building a property rental site, we can simultaneously imagine traveling
- AND building Ember applications simultaneously.About Ember Rentals
+ Welcome to Ember
+{{rental.title}}
-
-
+ View Larger
+
+
{{rental.title}}
+
- Testington, OR 97233
-
-
superrentalsrep@superrentals.com
- -{{#link-to 'about'}}About{{/link-to}} +Super Rentals Representatives would love to help you
choose a destination or answer
+ any questions you may have.
+ Super Rentals HQ +
+ 1212 Test Address Avenue
+ We hope you find exactly what you're looking for in a place to stay.
+
Browse our listings, or use the search box above to narrow your search.
+
The Super Rentals website is a delightful project created to explore Ember.
By building a property rental site, we can simultaneously imagine traveling
diff --git a/tests/acceptance/list-rentals-test.js b/tests/acceptance/list-rentals-test.js
new file mode 100644
index 000000000..8ae468c6d
--- /dev/null
+++ b/tests/acceptance/list-rentals-test.js
@@ -0,0 +1,48 @@
+import { test } from 'qunit';
+import moduleForAcceptance from 'super-rentals/tests/helpers/module-for-acceptance';
+import Ember from 'ember';
+
+let StubMapsService = Ember.Service.extend({
+ getMapElement() {
+ return document.createElement('div');
+ }
+});
+
+moduleForAcceptance('Acceptance | list rentals', {
+ beforeEach() {
+ this.application.register('service:mockMaps', StubMapsService);
+ this.application.inject('component:location-map', 'maps', 'service:mockMaps');
+ }
+});
+
+test('should initially list 3 rentals', function (assert) {
+ visit('/');
+ andThen(function() {
+ assert.equal(this.$('.results .listing').length, 3);
+ });
+});
+
+test('should link to about page', function (assert) {
+ visit('/');
+ click('a:contains("About")');
+ andThen(function () {
+ assert.equal(currentURL(), '/about');
+ });
+});
+
+test('should link to contacts page', function (assert) {
+ visit('/');
+ click('a:contains("Contact")');
+ andThen(function () {
+ assert.equal(currentURL(), '/contact');
+ });
+});
+
+test('should list 1 rental when filtering by Seattle', function (assert) {
+ visit('/');
+ fillIn('.list-filter input', 'seattle');
+ keyEvent('.list-filter input', 'keyup', 69);
+ andThen(function () {
+ assert.equal(this.$('.results .listing').length, 1);
+ });
+});
diff --git a/vendor/gmaps.js b/vendor/gmaps.js
index e03c5e3b2..c10c7611d 100644
--- a/vendor/gmaps.js
+++ b/vendor/gmaps.js
@@ -15,7 +15,7 @@ google.maps = google.maps || {};
google.maps.Load = function(apiLoad) {
delete google.maps.Load;
- apiLoad([0.009999999776482582,[[["https://mts0.googleapis.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.googleapis.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026"],null,null,null,null,"m@349000000",["https://mts0.google.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.google.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026"]],[["https://khms0.googleapis.com/kh?v=203\u0026hl=en-US\u0026","https://khms1.googleapis.com/kh?v=203\u0026hl=en-US\u0026"],null,null,null,1,"203",["https://khms0.google.com/kh?v=203\u0026hl=en-US\u0026","https://khms1.google.com/kh?v=203\u0026hl=en-US\u0026"]],null,[["https://mts0.googleapis.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.googleapis.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026"],null,null,null,null,"t@132,r@349000000",["https://mts0.google.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.google.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026"]],null,null,[["https://cbks0.googleapis.com/cbk?","https://cbks1.googleapis.com/cbk?"]],[["https://khms0.googleapis.com/kh?v=97\u0026hl=en-US\u0026","https://khms1.googleapis.com/kh?v=97\u0026hl=en-US\u0026"],null,null,null,null,"97",["https://khms0.google.com/kh?v=97\u0026hl=en-US\u0026","https://khms1.google.com/kh?v=97\u0026hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt?hl=en-US\u0026","https://mts1.googleapis.com/mapslt?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/ft?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/ft?hl=en-US\u0026"]],[["https://mts0.googleapis.com/maps/vt?hl=en-US\u0026","https://mts1.googleapis.com/maps/vt?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/loom?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/loom?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt?hl=en-US\u0026","https://mts1.googleapis.com/mapslt?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/ft?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/ft?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/loom?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/loom?hl=en-US\u0026"]]],["en-US","US",null,0,null,null,"https://maps.gstatic.com/mapfiles/","https://csi.gstatic.com","https://maps.googleapis.com","https://maps.googleapis.com",null,"https://maps.google.com","https://gg.google.com","https://maps.gstatic.com/maps-api-v3/api/images/","https://www.google.com/maps",0,"https://www.google.com"],["https://maps.googleapis.com/maps-api-v3/api/js/22/17","3.22.17"],[3085526246],1,null,null,null,null,null,"",null,null,1,"https://khms.googleapis.com/mz?v=203\u0026",null,"https://earthbuilder.googleapis.com","https://earthbuilder.googleapis.com",null,"https://mts.googleapis.com/maps/vt/icon",[["https://maps.googleapis.com/maps/vt"],["https://maps.googleapis.com/maps/vt"],null,null,null,null,null,null,null,null,null,null,["https://www.google.com/maps/vt"],"/maps/vt",349000000,132],2,500,[null,"https://g0.gstatic.com/landmark/tour","https://g0.gstatic.com/landmark/config",null,"https://www.google.com/maps/preview/log204","","https://static.panoramio.com.storage.googleapis.com/photos/",["https://geo0.ggpht.com/cbk","https://geo1.ggpht.com/cbk","https://geo2.ggpht.com/cbk","https://geo3.ggpht.com/cbk"],"https://maps.googleapis.com/maps/api/js/GeoPhotoService.GetMetadata","https://maps.googleapis.com/maps/api/js/GeoPhotoService.SingleImageSearch",["https://lh3.ggpht.com/","https://lh4.ggpht.com/","https://lh5.ggpht.com/","https://lh6.ggpht.com/"]],["https://www.google.com/maps/api/js/master?pb=!1m2!1u22!2s17!2sen-US!3sUS!4s22/17","https://www.google.com/maps/api/js/widget?pb=!1m2!1u22!2s17!2sen-US"],null,0,null,"/maps/api/js/ApplicationService.GetEntityDetails",0,null,null,null,null,[],["22.17"]], loadScriptTime);
+ apiLoad([0.009999999776482582,[[["https://mts0.googleapis.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.googleapis.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026"],null,null,null,null,"m@349000000",["https://mts0.google.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.google.com/maps/vt?lyrs=m@349000000\u0026src=api\u0026hl=en-US\u0026"]],[["https://khms0.googleapis.com/kh?v=203\u0026hl=en-US\u0026","https://khms1.googleapis.com/kh?v=203\u0026hl=en-US\u0026"],null,null,null,1,"203",["https://khms0.google.com/kh?v=203\u0026hl=en-US\u0026","https://khms1.google.com/kh?v=203\u0026hl=en-US\u0026"]],null,[["https://mts0.googleapis.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.googleapis.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026"],null,null,null,null,"t@132,r@349000000",["https://mts0.google.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026","https://mts1.google.com/maps/vt?lyrs=t@132,r@349000000\u0026src=api\u0026hl=en-US\u0026"]],null,null,[["https://cbks0.googleapis.com/cbk?","https://cbks1.googleapis.com/cbk?"]],[["https://khms0.googleapis.com/kh?v=97\u0026hl=en-US\u0026","https://khms1.googleapis.com/kh?v=97\u0026hl=en-US\u0026"],null,null,null,null,"97",["https://khms0.google.com/kh?v=97\u0026hl=en-US\u0026","https://khms1.google.com/kh?v=97\u0026hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt?hl=en-US\u0026","https://mts1.googleapis.com/mapslt?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/ft?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/ft?hl=en-US\u0026"]],[["https://mts0.googleapis.com/maps/vt?hl=en-US\u0026","https://mts1.googleapis.com/maps/vt?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/loom?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/loom?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt?hl=en-US\u0026","https://mts1.googleapis.com/mapslt?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/ft?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/ft?hl=en-US\u0026"]],[["https://mts0.googleapis.com/mapslt/loom?hl=en-US\u0026","https://mts1.googleapis.com/mapslt/loom?hl=en-US\u0026"]]],["en-US","US",null,0,null,null,"https://maps.gstatic.com/mapfiles/","https://csi.gstatic.com","https://maps.googleapis.com","https://maps.googleapis.com",null,"https://maps.google.com","https://gg.google.com","https://maps.gstatic.com/maps-api-v3/api/images/","https://www.google.com/maps",0,"https://www.google.com"],["https://maps.googleapis.com/maps-api-v3/api/js/22/17","3.22.17"],[631896665],1,null,null,null,null,null,"",null,null,1,"https://khms.googleapis.com/mz?v=203\u0026",null,"https://earthbuilder.googleapis.com","https://earthbuilder.googleapis.com",null,"https://mts.googleapis.com/maps/vt/icon",[["https://maps.googleapis.com/maps/vt"],["https://maps.googleapis.com/maps/vt"],null,null,null,null,null,null,null,null,null,null,["https://www.google.com/maps/vt"],"/maps/vt",349000000,132],2,500,[null,"https://g0.gstatic.com/landmark/tour","https://g0.gstatic.com/landmark/config",null,"https://www.google.com/maps/preview/log204","","https://static.panoramio.com.storage.googleapis.com/photos/",["https://geo0.ggpht.com/cbk","https://geo1.ggpht.com/cbk","https://geo2.ggpht.com/cbk","https://geo3.ggpht.com/cbk"],"https://maps.googleapis.com/maps/api/js/GeoPhotoService.GetMetadata","https://maps.googleapis.com/maps/api/js/GeoPhotoService.SingleImageSearch",["https://lh3.ggpht.com/","https://lh4.ggpht.com/","https://lh5.ggpht.com/","https://lh6.ggpht.com/"]],["https://www.google.com/maps/api/js/master?pb=!1m2!1u22!2s17!2sen-US!3sUS!4s22/17","https://www.google.com/maps/api/js/widget?pb=!1m2!1u22!2s17!2sen-US"],null,0,null,"/maps/api/js/ApplicationService.GetEntityDetails",0,null,null,null,null,[],["22.17"]], loadScriptTime);
};
var loadScriptTime = (new Date).getTime();
})();
From ba31fc153286017488cb9bbedad65158f33b6cd4 Mon Sep 17 00:00:00 2001
From: Todd Jordan