Skip to content

Instantly share code, notes, and snippets.

View DivineDominion's full-sized avatar

Christian Tietze DivineDominion

View GitHub Profile
@DivineDominion
DivineDominion / ValueTransformation.swift
Created March 1, 2015 19:27
Paste this into a playground and see what happens with the two client code examples at the bottom. Should work out of the box.
import Cocoa
/// A wrapper around any type to make Result compile
class Box<T> {
let unbox: T
init(_ value: T) {
self.unbox = value
}
}
feature 'Contact form POST without Ajax', :js => false do
context 'without name' do
it 'shows the index' do
visit_landing_page
within('#request-form') do
fill_in 'request-email', :with => 'test@test.de'
fill_in 'request-anliegen', :with => 'Test'
fill_in 'request-seiten', :with => '123'
end
click_button 'Anfragen'