Skip to content

Instantly share code, notes, and snippets.

class Spec::Rails::Example::AcceptanceExampleGroup
raise "Please, try to remove this. In this version of Rails it might be not necessary" unless Rails.version == "2.3.3"
def method_missing(sym, *args, &block)
return Spec::Matchers::Be.new(sym, *args) if sym.to_s =~ /^be_/
return Spec::Matchers::Has.new(sym, *args) if sym.to_s =~ /^have_/
super
end
end
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
run "rm -f public/javascripts/*"
# Set up git repository and .gitignore files
git :init
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"