Skip to content

Instantly share code, notes, and snippets.

void Start()
{
StartCoroutine(test());
}
IEnumerator test()
{
string input = "You JSON goes here";
Hashtable headers = new Hashtable();
package org.apache.cordova.facebook;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Currency;
import java.util.Date;
import java.util.HashSet;
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click_on('Link Text') # Click either a link or a button
click_on('Button Value')
Feature: Login Screen
As a user who is not logged in
I want to be able to log into carsocial
So that I can enter into the application
Background:
Given I am on the login screen
Scenario: I login successfully
Given I am a user on carsocial
class Api::ApplicationController < ApplicationController
rescue_from ActionController::UnknownFormat do |exception|
render json: { errors: [exception.to_s] }, status: 415
end
rescue_from Mongoid::Errors::DocumentNotFound do |exception|
render json: { errors: ["Not Found"] }, status: :not_found
end
FROM ruby:2.1.5
#################################
# native libs
#################################
RUN apt-get update -qq
RUN apt-get install -qq -y build-essential
RUN apt-get install -qq -y libpq-dev
RUN apt-get install -qq -y nodejs
module Devise
module Strategies
class Token < Base
# For more info. visit here..
# http://kyan.com/blog/2013/10/11/devise-authentication-strategies
def valid?
token
end
FROM ruby:2.1.5
#################################
# native libs
#################################
RUN apt-get update -qq
RUN apt-get install -qq -y build-essential
RUN apt-get install -qq -y libpq-dev
RUN apt-get install -qq -y nodejs
FROM ruby:2.1.5
#################################
# native libs
#################################
RUN apt-get update -qq
RUN apt-get install -qq -y build-essential
RUN apt-get install -qq -y libpq-dev
RUN apt-get install -qq -y nodejs
/*global define*/
define([
'jquery',
'backbone',
'lib/appcontext',
'lib/analytics'
], function (jQuery, Backbone, app, analytics) {
'use strict';