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 template assumes you have the HAML and Compass gems installed. | |
run "haml --rails ." | |
run "compass --rails -f blueprint --sass-dir public/stylesheets/sass --css-dir public/stylesheets ." | |
run "rm public/index.html" | |
plugin 'jrails', :git => 'git://github.com/aaronchi/jrails.git' | |
plugin 'make_resourceful', :git => 'git://github.com/hcatlin/make_resourceful.git' | |
plugin 'shoulda', :git => 'git://github.com/thoughtbot/shoulda.git' |
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
/* | |
* From http://www.evernote.com/pub/cdunn/code#3536832e-1337-4b80-bbb1-830dd9706476 | |
*/ | |
.foo { | |
min-height:100px; | |
height: auto !important; | |
height: 100px; | |
} |
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 'tempfile' | |
Given /^an import file exists with the following data:$/ do |field_table| | |
report = Ruport::Data::Table.new(:column_names => field_table.hashes.first.keys) | |
field_table.hashes.each { |hash| report << hash } | |
@current_import_file = Tempfile.new("import.csv") | |
@current_import_file << report.to_csv | |
@current_import_file.close | |
end |
NewerOlder