Want to create a service that holds all of our HTTP calls, but to test the controller that is using that service, how do we allow the ability to pass through to the real service, but mock out the HTTP calls to the server?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
var Northwoods = Northwoods || {}; | |
Northwoods.Directives = Northwoods.Directives || {}; | |
Northwoods.Directives.FocusableForm = function ($animate, $timeout) { | |
return { | |
restrict: 'A', | |
link: function (scope, element) { | |
var FOCUSED_CLASS = 'focused', | |
elements = element.find('input'); |
I hereby claim:
- I am walterg2 on github.
- I am walterg2 (https://keybase.io/walterg2) on keybase.
- I have a public key whose fingerprint is 19AE 555C 4947 EE8F 4EBC 03A4 9BC9 AD04 70CF 859B
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.temp.myApp.cucumber.pages | |
import geb.Page | |
class HomePage extends Page { | |
static url = "" | |
static at = { title == "Home" } | |
static content = { | |
mainHeading { $('h1') } | |
loanInformation(required: false) { $('dl', 0) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Core variables and mixins | |
@import "bootstrap/variables"; // Modify this for custom colors, font-sizes, etc | |
@import "bootstrap/mixins"; | |
// CSS Reset | |
@import "bootstrap/reset"; | |
// CSS Buttons - Want to use these as mixins, not styles... | |
@import "bootstrap/buttons"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint nomen: true, regexp: true */ | |
/*globals window, document, Backbone, _ */ | |
var Character = Backbone.Model.extend({ | |
alignments: { | |
"Evil": "Evil", | |
"Neutral": "Neutral", | |
"Good": "Good" | |
}, | |
validate: function (attrs) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for(@structure) do |f| %> | |
<%= f.select :structural_material, options_from_collection_for_select(@materials, :material, :material), :prompt => "Select" %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<h1>Apply Test</h1> | |
<p>Click the Next and Back buttons or use your arrow keys to see your counter go up and down.</p> | |
<div id="counter"></div> | |
<form action="#"> | |
<input type="button" name="next" value="Next" id="next" /> |