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
# this uses RspecHpricotMatchers: http://github.com/pd/rspec_hpricot_matchers | |
module FormFieldHpricotMatchers | |
# TODO: Add support for selects | |
# TODO: Test with anything that isn't an input[type=text] :P | |
class HaveField | |
include RspecHpricotMatchers | |
def initialize(id, type, tagname) | |
@tagname = tagname |
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
module Sinatra | |
class EventContext | |
def params | |
@params ||= ParamsParser.new(@route_params.merge(@request.params)).to_hash | |
end | |
private | |
class ParamsParser | |
attr_reader :hash |
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
%ul | |
- for activity in @user.activity_feed | |
%li= render :partial => "activity", :object => activity |
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
#header | |
#content | |
.top_content= yield :top_content | |
.lower_content | |
= flash_messages | |
= yield | |
#footer |
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
describe FooController do | |
stub_record_and_collection_urls! | |
describe "GET /foos" do | |
# ... | |
end | |
# ... | |
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
<ol> | |
<li> | |
<div class="time">10:30</div> | |
<q><address>John</address> hi</q> | |
</li> | |
<li><q><address>Mary</address> hey!</q></li> | |
<li><q><address>Mary</address> blah</q></li> | |
<li><q><address>John</address> blah blah?</q></li> | |
<li> | |
<div class="time">10:35</div> |
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
$ spec -c spec/ | |
/opt/local/lib/ruby/1.8/optparse.rb:1443:in `complete': invalid option: -c (OptionParser::InvalidOption) | |
from /opt/local/lib/ruby/1.8/optparse.rb:1441:in `catch' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1441:in `complete' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1280:in `parse_in_order' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1247:in `catch' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1247:in `parse_in_order' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1241:in `order!' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1332:in `permute!' | |
from /opt/local/lib/ruby/1.8/optparse.rb:1 |
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
Spec::Rake::SpecTask.new(:spec) do |t| | |
t.spec_opts = ["--color", "--format", "specdoc"] | |
t.spec_files = Dir['spec/**/*_spec.rb'].sort | |
t.libs = ['lib'] | |
t.rcov = false | |
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
Información del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Gerentes & Desarrolladores | |
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
Información del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Desarrolladores | |