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
require 'rspec' | |
describe 'Matcher description' do | |
it 'returns the correct description' do | |
[ | |
[be(['foo']), 'equal "foo"'], | |
[be_a(['foo']), 'be a kind of "foo"'], | |
[be_an_instance_of(['foo']), 'be an instance of ["foo"]'], | |
[be_within(['foo']), 'be within ["foo"] of '], | |
[contain_exactly(['foo']), 'contain exactly ["foo"]'], |
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
$:.unshift File.dirname(__FILE__) | |
require 'sinatra' | |
require 'mustache/sinatra' | |
class Example < Sinatra::Base | |
register Mustache::Sinatra | |
get '/' do | |
mustache :index, layout: false |
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
global class BatchJob implements Database.Batchable<Account> { | |
global Account[] start(Database.BatchableContext batchableContext) {return new Account[]{};} | |
global void execute(Database.BatchableContext batchableContext, Account[] accounts) {} | |
global void finish(Database.BatchableContext batchableContext) {} | |
} |